.auth-page-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    padding: clamp(20px, 5vw, 40px);
}

.matrix-container {
    top: -50px;
    height: 120%;
}

.auth-card {
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.85), rgba(15, 15, 15, 0.95));
    padding: clamp(30px, 8vw, 55px) clamp(20px, 10vw, 45px);
    border-radius: 32px;
    width: 100%;
    max-width: 440px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 10;
    animation: authFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 35px;
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group i.main-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
    z-index: 5;
}

.password-toggle:hover {
    color: var(--primary);
}

.auth-card input {
    width: 100% !important;
    height: 52px;
    padding: 0 50px 0 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff !important;
    font-size: 15px;
    transition: all 0.3s;
}

.auth-select {
    width: 100% !important;
    height: 52px;
    padding: 0 20px 0 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff !important;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
}

.auth-card input:focus,
.auth-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 69, 0, 0.08);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.15);
}

.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff;
}

.auth-card input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #2a1a15 inset !important;
    box-shadow: 0 0 0 1000px #2a1a15 inset !important;
    border-color: var(--primary) !important;
    -webkit-text-fill-color: #ffffff !important;
}

.auth-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0 15px 0;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
}

.remember-me input {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-card button[type="submit"] {
    width: 100%;
    height: 52px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.3);
}

.auth-card button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 69, 0, 0.5);
    filter: brightness(1.15);
}

.auth-footer-links {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.auth-footer-links a:hover {
    color: var(--primary);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0 10px 0;
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.separator span {
    padding: 0 15px;
}

.social-login {
    margin: 20px 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.google-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 600 !important;
    border-radius: 50px;
    width: 100%;
    height: 52px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px);
}

.google-icon {
    width: 18px;
    height: 18px;
}

.caps-warning {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    background: #ff5e00;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.4);
    z-index: 100;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.caps-warning::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 15px;
    border: 5px solid transparent;
    border-top-color: #ff5e00;
}

.caps-warning.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.password-input.caps-on {
    padding-right: 50px !important;
}

@media (max-width: 410px) {
    .auth-card {
        padding: 30px clamp(15px, 5vw, 25px);
        border-radius: 24px;
    }

    .auth-card h2 {
        font-size: clamp(1.2rem, 8vw, 1.6rem);
        margin-bottom: 25px;
    }

    .auth-extra {
        font-size: clamp(10px, 3.5vw, 12px);
        gap: 5px;
    }

    .auth-card button[type="submit"],
    .google-btn {
        height: 48px;
        font-size: clamp(13px, 4.5vw, 15px);
        letter-spacing: 0.5px;
    }

    .auth-card input,
    .auth-select {
        height: 48px;
        padding-left: 42px;
        font-size: 14px;
    }

    .input-group i.main-icon {
        left: 15px;
        font-size: 0.9rem;
    }

    .password-toggle {
        right: 15px;
    }

    .separator span {
        font-size: 10px;
    }
}