﻿/* ================= AUTH SHARED ================= */
.auth-body {
    margin: 0;
    padding: 0;
    background: var(--dark);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: var(--dark);
}

.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    z-index: 0;
    pointer-events: none;
}

.auth-blob-1 {
    width: 550px;
    height: 550px;
    background: rgba(37,71,244,.35);
    top: -180px;
    right: -150px;
    animation: floatY 10s ease-in-out infinite;
}

.auth-blob-2 {
    width: 450px;
    height: 450px;
    background: rgba(124,58,237,.3);
    bottom: -180px;
    left: -120px;
    animation: floatY 12s ease-in-out infinite reverse;
}

@keyframes floatY {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.auth-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 40%, black, transparent 70%);
    z-index: 0;
}

/* ================= CARD ================= */
.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,.5);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--gradient-main);
    color: white;
    font-size: 28px;
    box-shadow: 0 15px 35px rgba(37,71,244,.4);
}

.auth-card-header h1 {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
}

.auth-card-header p {
    color: rgba(255,255,255,.5);
    font-size: 14px;
}

/* ================= FORM ================= */
.auth-group {
    margin-bottom: 20px;
}

    .auth-group label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: rgba(255,255,255,.7);
        margin-bottom: 8px;
    }

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .auth-input-wrapper i:first-child {
        position: absolute;
        right: 18px;
        color: rgba(255,255,255,.35);
        font-size: 15px;
        pointer-events: none;
    }

    .auth-input-wrapper input {
        width: 100%;
        background: rgba(255,255,255,.05);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 14px;
        padding: 15px 48px 15px 48px;
        color: #ffffff;
        font-size: 14.5px;
        font-family: inherit;
        outline: none;
        transition: border-color .3s, background .3s;
    }

        .auth-input-wrapper input::placeholder {
            color: rgba(255,255,255,.25);
        }

        .auth-input-wrapper input:focus {
            border-color: rgba(107,140,255,.6);
            background: rgba(107,140,255,.08);
        }

.auth-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    margin-top: 8px;
    border: none;
    border-radius: 14px;
    background: var(--gradient-main);
    color: white;
    font-size: 15.5px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(37,71,244,.4);
    transition: .3s var(--ease);
}

    .auth-submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 45px rgba(37,71,244,.5);
    }

    .auth-submit-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none;
    }

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 13.5px;
    color: rgba(255,255,255,.5);
}

    .auth-switch a {
        color: #6b8cff;
        font-weight: 700;
        text-decoration: none;
        margin-right: 4px;
    }

        .auth-switch a:hover {
            text-decoration: underline;
        }

@media (max-width: 480px) {
    .auth-card {
        padding: 36px 26px;
        border-radius: 26px;
    }
}
