/* ===== Root Colors ===== */
:root {
    --primary: #12d0de;
    --primary-dark: #0ba8b5;
    --primary-light: #4de0eb;
    --primary-gradient: linear-gradient(135deg, #12d0de, #0ba8b5);
    --accent: #e3e3e3;
    --bg-gradient-1: #e3e3e3;
    --bg-gradient-2: #d5d5d5;
    --shadow: 0 10px 40px rgba(18, 208, 222, 0.25);
    --glass-bg: rgba(255,255,255,0.15);
    --glass-border: rgba(255,255,255,0.2);
}

/* ===== Reset & Base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Tahoma', 'Vazirmatn', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2), #f0f0f0);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    perspective: 1200px;
    padding: 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Animated Background Particles ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(18, 208, 222, 0.15);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 5%; animation-duration: 20s; animation-delay: 0s; width: 8px; height: 8px; }
.particle:nth-child(2) { left: 15%; animation-duration: 25s; animation-delay: 2s; width: 5px; height: 5px; }
.particle:nth-child(3) { left: 25%; animation-duration: 18s; animation-delay: 4s; width: 10px; height: 10px; }
.particle:nth-child(4) { left: 35%; animation-duration: 22s; animation-delay: 1s; width: 6px; height: 6px; }
.particle:nth-child(5) { left: 45%; animation-duration: 27s; animation-delay: 3s; width: 7px; height: 7px; }
.particle:nth-child(6) { left: 55%; animation-duration: 19s; animation-delay: 5s; width: 9px; height: 9px; }
.particle:nth-child(7) { left: 65%; animation-duration: 24s; animation-delay: 2s; width: 5px; height: 5px; }
.particle:nth-child(8) { left: 75%; animation-duration: 21s; animation-delay: 4s; width: 8px; height: 8px; }
.particle:nth-child(9) { left: 85%; animation-duration: 26s; animation-delay: 1s; width: 6px; height: 6px; }
.particle:nth-child(10) { left: 10%; animation-duration: 23s; animation-delay: 3s; width: 7px; height: 7px; }
.particle:nth-child(11) { left: 40%; animation-duration: 20s; animation-delay: 5s; width: 4px; height: 4px; }
.particle:nth-child(12) { left: 70%; animation-duration: 28s; animation-delay: 0s; width: 11px; height: 11px; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) rotate(36deg) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) rotate(324deg) scale(1);
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* ===== Login Background ===== */
.login-background {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    z-index: 1;
    animation: containerFadeIn 1.2s ease forwards;
    padding: 10px;
}

@keyframes containerFadeIn {
    0% { opacity: 0; transform: scale(0.9) rotateX(10deg); }
    100% { opacity: 1; transform: scale(1) rotateX(0deg); }
}

/* ===== Glowing Orb Behind Card ===== */
.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 208, 222, 0.2), transparent 70%);
    top: -100px;
    right: -100px;
    animation: orbFloat 6s ease-in-out infinite;
    z-index: 0;
    filter: blur(60px);
}

.glow-orb-2 {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 208, 222, 0.12), transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: orbFloat 8s ease-in-out infinite reverse;
    z-index: 0;
    filter: blur(50px);
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ===== Floating Blobs ===== */
.floating-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    border-radius: 25px;
}
.floating-blobs span {
    position: absolute;
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(18, 208, 222, 0.08);
    animation: blobMove 15s infinite alternate;
}
.floating-blobs span:nth-child(1){ top:10%; left:5%; animation-duration: 18s; background: rgba(18, 208, 222, 0.12);}
.floating-blobs span:nth-child(2){ top:20%; left:70%; animation-duration: 22s; background: rgba(18, 208, 222, 0.1);}
.floating-blobs span:nth-child(3){ top:60%; left:15%; animation-duration: 20s; background: rgba(18, 208, 222, 0.08);}
.floating-blobs span:nth-child(4){ top:50%; left:80%; animation-duration: 25s; background: rgba(18, 208, 222, 0.06);}
.floating-blobs span:nth-child(5){ top:75%; left:35%; animation-duration: 17s; background: rgba(18, 208, 222, 0.1);}

@keyframes blobMove {
    0% { transform: translate(0,0) scale(1) rotate(0deg);}
    50% { transform: translate(50px,-50px) scale(1.3) rotate(180deg);}
    100% { transform: translate(0,0) scale(1) rotate(360deg);}
}

/* ===== Login Card ===== */
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 40px 30px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(18, 208, 222, 0.2),
        0 0 0 1px rgba(18, 208, 222, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card shine overlay */
.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(18, 208, 222, 0.05), transparent 60%);
    pointer-events: none;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.login-card:hover::before {
    opacity: 1;
}

/* ===== Logo ===== */
.login-logo {
    position: relative;
    z-index: 2;
}

.login-logo img {
    width: 90px;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    animation: logoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(18, 208, 222, 0.3));
    transition: transform 0.3s ease;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1) rotateY(0deg); }
    25% { transform: scale(1.05) rotateY(5deg); }
    75% { transform: scale(0.95) rotateY(-5deg); }
}

/* ===== Title ===== */
.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    word-break: break-word;
    text-shadow: 0 2px 10px rgba(18, 208, 222, 0.15);
    position: relative;
    display: inline-block;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    animation: titleLine 2s ease-in-out infinite;
}

@keyframes titleLine {
    0%, 100% { width: 50px; }
    50% { width: 80px; }
}

/* ===== Messages ===== */
.error-message {
    background: rgba(255,0,0,0.06);
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 600;
    word-break: break-word;
    border: 1px solid rgba(255,0,0,0.08);
    animation: messageSlideIn 0.5s ease forwards;
    font-size: 0.95rem;
}

.timeout-message {
    background: rgba(255,193,7,0.1);
    color: #856404;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-right: 4px solid #ffc107;
    text-align: center;
    word-break: break-word;
    border: 1px solid rgba(255,193,7,0.08);
    animation: messageSlideIn 0.5s ease forwards;
    font-size: 0.95rem;
}

.block-message {
    background: rgba(220,53,69,0.06);
    color: #721c24;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-right: 4px solid #dc3545;
    text-align: center;
    word-break: break-word;
    border: 1px solid rgba(220,53,69,0.08);
    animation: messageSlideIn 0.5s ease forwards;
    font-size: 0.95rem;
}

@keyframes messageSlideIn {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ===== Form Inputs ===== */
.form-group {
    margin-bottom: 18px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid rgba(18, 208, 222, 0.15);
    outline: none;
    background: rgba(255,255,255,0.7);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    -webkit-appearance: none;
    appearance: none;
    color: #2c3e50;
}

.form-group input::placeholder {
    color: rgba(44,62,80,0.4);
}

.form-group input:focus {
    background: rgba(255,255,255,0.9);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(18, 208, 222, 0.1), inset 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.input-glow {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 80%;
    height: 6px;
    background: radial-gradient(ellipse, rgba(18, 208, 222, 0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.form-group:focus-within .input-glow {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.password-hint {
    font-size: 11px;
    color: rgba(44,62,80,0.5);
    margin-top: 5px;
    padding-right: 4px;
}

/* ===== Remember Me ===== */
.remember-me {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.remember-me input[type="checkbox"]:hover {
    transform: scale(1.1);
}

.remember-me label {
    font-size: 0.9rem;
    color: #2c3e50;
    cursor: pointer;
    transition: color 0.2s ease;
}

.remember-me label:hover {
    color: var(--primary);
}

/* ===== Button ===== */
.login-btn {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #12d0de, #0ba8b5);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(18, 208, 222, 0.3);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(18, 208, 222, 0.4);
}

.login-btn:active {
    transform: translateY(0) scale(0.97);
}

/* Button pulse ring */
.login-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.login-btn:active::after {
    width: 300px;
    height: 300px;
}

/* ===== Footer Links ===== */
.login-footer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(18, 208, 222, 0.1);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.login-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.login-footer a:hover::after {
    width: 100%;
}

.login-footer a:hover {
    color: var(--primary-dark);
}

/* ===== 3D Hover Effect for Desktop ===== */
@media (min-width: 1025px) {
    .login-card {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0);
        transition: transform 0.1s ease-out, box-shadow 0.3s ease;
        padding: 45px 35px;
        background: rgba(255,255,255,0.8);
    }
    
    .login-card:hover {
        box-shadow: 
            0 30px 80px rgba(18, 208, 222, 0.25),
            0 0 0 1px rgba(18, 208, 222, 0.08),
            inset 0 1px 0 rgba(255,255,255,0.8);
    }
    
    .login-title {
        font-size: 2.2rem;
    }
    
    .login-logo img {
        width: 100px;
    }
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablets and large phones */
@media (max-width: 1024px) and (min-width: 601px) {
    body {
        padding: 30px;
    }
    
    .login-background {
        max-width: 520px;
    }
    
    .login-card {
        padding: 38px 30px;
        border-radius: 28px;
        background: rgba(255,255,255,0.85);
    }
    
    .login-title {
        font-size: 1.9rem;
    }
    
    .login-logo img {
        width: 85px;
    }
    
    .form-group input {
        padding: 13px 16px;
        font-size: 0.95rem;
    }
}

/* Mobile phones */
@media (max-width: 600px) {
    body {
        padding: 12px;
        align-items: flex-start;
        padding-top: 30px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .login-background {
        max-width: 100%;
        padding: 0;
        animation: containerFadeInMobile 0.8s ease forwards;
    }
    
    @keyframes containerFadeInMobile {
        0% { opacity: 0; transform: scale(0.95) translateY(20px); }
        100% { opacity: 1; transform: scale(1) translateY(0); }
    }
    
    .login-card {
        padding: 28px 18px;
        border-radius: 22px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        background: rgba(255,255,255,0.9);
    }
    
    .login-title {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }
    
    .login-title::after {
        bottom: -6px;
        width: 35px;
        height: 2.5px;
    }
    
    @keyframes titleLine {
        0%, 100% { width: 35px; }
        50% { width: 55px; }
    }
    
    .login-logo img {
        width: 70px;
        margin-bottom: 8px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .form-group input {
        padding: 11px 14px;
        font-size: 0.9rem;
        border-radius: 11px;
        border-width: 1.5px;
    }
    
    .login-btn {
        padding: 13px;
        font-size: 1rem;
        border-radius: 13px;
    }
    
    .error-message,
    .timeout-message,
    .block-message {
        font-size: 0.85rem;
        padding: 9px 12px;
        border-radius: 10px;
        margin-bottom: 14px;
    }
    
    .remember-me {
        gap: 8px;
        margin-bottom: 18px;
    }
    
    .remember-me label {
        font-size: 0.85rem;
    }
    
    .remember-me input[type="checkbox"] {
        width: 17px;
        height: 17px;
    }
    
    .password-hint {
        font-size: 10px;
    }
    
    .glow-orb {
        width: 180px;
        height: 180px;
        top: -80px;
        right: -80px;
        filter: blur(40px);
    }
    
    .glow-orb-2 {
        width: 160px;
        height: 160px;
        bottom: -60px;
        left: -60px;
        filter: blur(35px);
    }
    
    .floating-blobs span {
        width: 50px;
        height: 50px;
    }
    
    .floating-blobs span:nth-child(1) { width: 70px; height: 70px; }
    .floating-blobs span:nth-child(2) { width: 80px; height: 80px; }
    .floating-blobs span:nth-child(3) { width: 60px; height: 60px; }
    .floating-blobs span:nth-child(4) { width: 45px; height: 45px; }
    .floating-blobs span:nth-child(5) { width: 55px; height: 55px; }
    
    .login-footer a {
        font-size: 0.8rem;
    }
    
    .login-card::before {
        opacity: 0.5;
    }
    
    /* Disable 3D tilt on mobile */
    .login-card {
        transform: none !important;
        transition: none !important;
    }
}

/* Small phones */
@media (max-width: 400px) {
    body {
        padding: 8px;
        padding-top: 20px;
    }
    
    .login-card {
        padding: 22px 14px;
        border-radius: 18px;
        background: rgba(255,255,255,0.92);
    }
    
    .login-title {
        font-size: 1.3rem;
        margin-bottom: 14px;
    }
    
    .login-title::after {
        width: 30px;
        height: 2px;
        bottom: -5px;
    }
    
    @keyframes titleLine {
        0%, 100% { width: 30px; }
        50% { width: 45px; }
    }
    
    .login-logo img {
        width: 60px;
        margin-bottom: 6px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input {
        padding: 9px 12px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .login-btn {
        padding: 11px;
        font-size: 0.9rem;
        border-radius: 11px;
    }
    
    .error-message,
    .timeout-message,
    .block-message {
        font-size: 0.8rem;
        padding: 8px 10px;
        border-radius: 9px;
        margin-bottom: 12px;
    }
    
    .remember-me {
        gap: 6px;
        margin-bottom: 14px;
    }
    
    .remember-me label {
        font-size: 0.8rem;
    }
    
    .remember-me input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    .password-hint {
        font-size: 9px;
    }
    
    .glow-orb {
        width: 140px;
        height: 140px;
        top: -60px;
        right: -60px;
        filter: blur(30px);
    }
    
    .glow-orb-2 {
        width: 120px;
        height: 120px;
        bottom: -40px;
        left: -40px;
        filter: blur(25px);
    }
    
    .particle {
        width: 4px !important;
        height: 4px !important;
    }
    
    .login-footer a {
        font-size: 0.75rem;
    }
}

/* Short screens (height) */
@media (max-height: 680px) {
    body {
        padding: 10px;
        align-items: center;
        padding-top: 10px;
    }
    
    .login-card {
        padding: 20px 18px;
        border-radius: 20px;
        background: rgba(255,255,255,0.9);
    }
    
    .login-logo img {
        width: 55px;
        margin-bottom: 5px;
    }
    
    .login-title {
        font-size: 1.4rem;
        margin-bottom: 14px;
    }
    
    .login-title::after {
        bottom: -4px;
        height: 2px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .login-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .remember-me {
        margin-bottom: 14px;
    }
    
    .error-message,
    .timeout-message,
    .block-message {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .glow-orb,
    .glow-orb-2 {
        display: none;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 8px;
        align-items: center;
        padding-top: 8px;
    }
    
    .login-background {
        max-width: 420px;
    }
    
    .login-card {
        padding: 16px 20px;
        border-radius: 16px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(255,255,255,0.9);
    }
    
    .login-logo img {
        width: 45px;
        margin-bottom: 3px;
        animation: none;
    }
    
    .login-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .login-title::after {
        bottom: -3px;
        height: 2px;
        width: 25px;
    }
    
    @keyframes titleLine {
        0%, 100% { width: 25px; }
        50% { width: 35px; }
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .form-group input {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 8px;
        border-width: 1.5px;
    }
    
    .login-btn {
        padding: 8px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .remember-me {
        margin-bottom: 10px;
        gap: 6px;
    }
    
    .remember-me label {
        font-size: 0.8rem;
    }
    
    .remember-me input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }
    
    .error-message,
    .timeout-message,
    .block-message {
        padding: 5px 10px;
        font-size: 0.75rem;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .password-hint {
        font-size: 8px;
        margin-top: 3px;
    }
    
    .glow-orb,
    .glow-orb-2 {
        display: none;
    }
    
    .floating-blobs span {
        width: 30px;
        height: 30px;
    }
    
    .floating-blobs span:nth-child(1) { width: 40px; height: 40px; }
    .floating-blobs span:nth-child(2) { width: 45px; height: 45px; }
    .floating-blobs span:nth-child(3) { width: 35px; height: 35px; }
    
    .particle {
        display: none;
    }
    
    .login-footer {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .login-footer a {
        font-size: 0.7rem;
    }
}

/* Very large screens */
@media (min-width: 1400px) {
    .login-background {
        max-width: 520px;
    }
    
    .login-card {
        padding: 55px 45px;
        border-radius: 35px;
        background: rgba(255,255,255,0.85);
    }
    
    .login-title {
        font-size: 2.6rem;
    }
    
    .login-logo img {
        width: 120px;
    }
    
    .form-group input {
        padding: 16px 20px;
        font-size: 1.05rem;
        border-radius: 14px;
    }
    
    .login-btn {
        padding: 16px;
        font-size: 1.2rem;
        border-radius: 16px;
    }
}

/* ===== Loading animation for card ===== */
.login-card {
    animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}