/* ========================================================
   LOGIN PAGE STYLES (PREMIUM FEATURES)
   ======================================================== */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* ===== ဒီနေရာမှာ အဖြူအစား Gradient ပြောင်းထားပါ ===== */
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 30%, #ede9fe 60%, #fae8ff 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease-in-out infinite alternate;
    font-family: var(--font-family, 'Inter', sans-serif);
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* ===== Animated Background Gradient ===== */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Floating Orbs ===== */
.login-body::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb1 20s ease-in-out infinite alternate;
    pointer-events: none;
}

.login-body::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb2 25s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-80px, 60px) scale(1.2); opacity: 1; }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    100% { transform: translate(60px, -80px) scale(1.3); opacity: 0.8; }
}

/* ===== Login Container ===== */
.login-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 
        0 20px 60px -15px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    z-index: 2;
    animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===== Slide Up Animation ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== Animated Border Beam ===== */
.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 60deg,
        #4f46e5 90deg,
        #818cf8 130deg,
        #c084fc 170deg,
        transparent 210deg,
        transparent 360deg
    );
    animation: rotateBorder 6s linear infinite;
    z-index: 0;
}

/* ===== Border Rotate ===== */
@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Inner Layer ===== */
.login-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    z-index: 1;
}

/* ===== Contents ===== */
.login-header,
.login-form,
.login-footer,
.alert-box {
    position: relative;
    z-index: 3;
}

/* ===== LOGO / ICON ===== */
.login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 18px auto;
    border: 1px solid rgba(79, 70, 229, 0.15);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12); }
    50% { box-shadow: 0 8px 32px rgba(79, 70, 229, 0.25); }
}

.login-container:hover .login-icon {
    transform: scale(1.08) rotate(-6deg);
}

.login-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}

/* ===== Alert Boxes ===== */
.alert-box {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    animation: alertSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.alert-success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

/* ===== Form Groups ===== */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ===== Input Group ===== */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 4;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-color: #f8fafc;
}

.input-group input:focus {
    background-color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: scale(1.01);
}

.input-group input:focus + i,
.input-group:focus-within i {
    color: #4f46e5;
    transform: scale(1.15) translateX(2px);
}

.input-group input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
    transition: all 0.3s ease;
}

.input-group input:focus::placeholder {
    opacity: 0.5;
    transform: translateX(4px);
}

/* ===== Password Toggle ===== */
.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 4;
}

.password-toggle:hover {
    color: #4f46e5;
    transform: scale(1.15);
}

/* ===== Options Row ===== */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
}

.login-options .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
}

.login-options .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    border-radius: 4px;
    cursor: pointer;
}

.login-options .forgot-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-options .forgot-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* ===== Login Button ===== */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 60%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.btn-login:hover::before {
    transform: rotate(30deg) translateX(100%);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.4);
}

.btn-login:active {
    transform: translateY(0px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-login i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-login:hover i {
    transform: translateX(5px);
}

/* ===== Loading State ===== */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading .btn-text {
    visibility: hidden;
}

.btn-login.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Footer ===== */
.login-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.login-footer a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* ===== Divider ===== */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.login-divider span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Social Login ===== */
.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.social-btn:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}

.social-btn i {
    font-size: 18px;
}

.social-btn.google i { color: #ea4335; }
.social-btn.github i { color: #333; }
.social-btn.facebook i { color: #1877f2; }


/* ========================================================
   MOBILE RESPONSIVE
   ======================================================== */

@media screen and (max-width: 480px) {
    .login-body {
        padding: 16px;
    }

    .login-container {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .login-container::after {
        border-radius: 18px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .login-header p {
        font-size: 12.5px;
    }

    .login-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 14px;
    }

    .input-group input {
        padding: 12px 14px 12px 42px;
        font-size: 13px;
    }

    .input-group i {
        font-size: 14px;
        left: 12px;
    }

    .btn-login {
        padding: 14px;
        font-size: 14px;
    }

    .login-options {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .social-login {
        flex-direction: column;
        gap: 8px;
    }

    .social-btn {
        padding: 10px;
        font-size: 13px;
    }

    .login-footer {
        font-size: 11px;
    }

    .login-divider {
        margin: 18px 0;
    }

    .login-body::before,
    .login-body::after {
        opacity: 0.3;
        width: 300px;
        height: 300px;
    }
}