.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

body[data-theme="light"] .auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(220, 20, 60, 0.04) 0%, rgba(255, 99, 132, 0.06) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(220,20,60,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-color: #FAFBFC;
    z-index: 0;
}

body[data-theme="light"] .auth-container::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

body[data-theme="dark"] .auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, rgba(26, 31, 38, 0.98) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(220,20,60,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-color: #0F1419;
    z-index: 0;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(30px, -30px) scale(1.1); 
    }
    66% { 
        transform: translate(-20px, 20px) scale(0.9); 
    }
}

.auth-box {
    max-width: 680px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
}

.auth-logo::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    border-radius: 3px;
}

.auth-logo-img {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(220, 20, 60, 0.2));
    transition: all 0.3s ease;
}

body[data-theme="dark"] .auth-logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 6px 12px rgba(220, 20, 60, 0.2));
}

.auth-logo-img:hover {
    filter: drop-shadow(0 8px 16px rgba(220, 20, 60, 0.3));
    transform: scale(1.02);
}

body[data-theme="dark"] .auth-logo-img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 8px 16px rgba(220, 20, 60, 0.3));
}

.auth-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 55px;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.08),
        0 0 0 1px var(--border-color);
    border: none;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.98);
}

body[data-theme="dark"] .auth-card {
    background: rgba(26, 31, 38, 0.98);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(220, 20, 60, 0.15);
}

.auth-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px var(--border-color);
}

body[data-theme="dark"] .auth-card:hover {
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(220, 20, 60, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #E91E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
}

.auth-form {
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

body[data-theme="light"] .form-input {
    background: rgba(248, 249, 250, 0.7);
}

body[data-theme="dark"] .form-input {
    background: rgba(15, 20, 25, 0.6);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-input:hover {
    border-color: var(--primary-red);
    background: var(--bg-card);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 5px rgba(220, 20, 60, 0.15);
    background: var(--bg-card);
    transform: translateY(-2px);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 17px;
}

.password-toggle:hover {
    color: var(--primary-red);
    background: rgba(220, 20, 60, 0.1);
    transform: translateY(-50%) scale(1.15);
}

.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-red);
    border-radius: 6px;
}

.form-checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
}

.auth-submit {
    width: 100%;
    padding: 17px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #E91E63 100%);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.35);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.45);
}

.auth-submit:active {
    transform: translateY(-1px);
}

.auth-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-submit.loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 30px 0;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.auth-divider-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-footer {
    text-align: center;
}

.auth-footer-text {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-footer-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.auth-footer-link:hover {
    color: #E91E63;
    border-bottom-color: #E91E63;
}

.auth-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
}

.auth-feature {
    text-align: center;
    padding: 28px 18px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.04) 0%, rgba(220, 20, 60, 0.02) 100%);
    border-radius: 20px;
    border: 2px solid rgba(220, 20, 60, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.auth-feature:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 20, 60, 0.3);
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.2);
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, rgba(220, 20, 60, 0.04) 100%);
}

.auth-feature-icon {
    font-size: 42px;
    margin-bottom: 14px;
    filter: drop-shadow(0 3px 6px rgba(220, 20, 60, 0.25));
    display: inline-block;
    transition: transform 0.3s ease;
}

.auth-feature:hover .auth-feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.auth-feature-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.4px;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 25px 18px;
    }

    .auth-box {
        max-width: 100%;
    }

    .auth-card {
        padding: 40px 28px;
        border-radius: 24px;
    }

    .auth-title {
        font-size: 28px;
    }

    .auth-subtitle {
        font-size: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .auth-features {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .auth-feature {
        padding: 24px 16px;
    }

    .auth-logo-img {
        max-width: 180px;
    }

    .form-input {
        padding: 14px 18px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 22px;
    }

    .auth-title {
        font-size: 26px;
    }

    .form-label {
        font-size: 13px;
    }

    .auth-submit {
        padding: 15px;
        font-size: 15px;
    }

    .auth-feature-icon {
        font-size: 36px;
    }

    .auth-logo::after {
        width: 70px;
        height: 2px;
    }
}
