/* ── Shared Auth Styles ─────────────────────────────────── */

.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at top left, rgba(111, 45, 189, 0.06), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(185, 250, 248, 0.08), transparent 50%),
                #ffffff;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 2.5rem 2rem;
    border: 1px solid #f0f0f0;
}

.auth-logo {
    height: 44px;
    width: auto;
}

.auth-title {
    font-weight: 700;
    font-size: 1.35rem;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.88rem;
}

/* ── Inputs ────────────────────────────────────────────── */

.auth-input {
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
    color: #1a1a2e;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    width: 100%;
}

.auth-input:focus {
    border-color: var(--primary-purple, #6F2DBD);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(111, 45, 189, 0.08);
    outline: none;
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    display: block;
}

/* ── Input with left icon ──────────────────────────────── */

.auth-input-icon {
    position: relative;
}

.auth-input-icon .auth-input {
    padding-left: 2.6rem;
}

.auth-input-icon .auth-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.15s ease;
    z-index: 1;
}

.auth-input-icon:focus-within .auth-icon {
    color: var(--primary-purple, #6F2DBD);
}

/* ── Input with toggle (password) ──────────────────────── */

.auth-input-group {
    position: relative;
}

.auth-input-group .auth-input {
    padding-left: 2.6rem;
    padding-right: 2.8rem;
}

.auth-input-group .auth-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.15s ease;
    z-index: 1;
}

.auth-input-group:focus-within .auth-icon {
    color: var(--primary-purple, #6F2DBD);
}

.auth-toggle-pw {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.auth-toggle-pw:hover {
    color: #6b7280;
}

/* ── Submit Button ─────────────────────────────────────── */

.auth-btn-submit {
    background-color: var(--primary-purple, #6F2DBD);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem;
    font-weight: 700;
    font-size: 0.92rem;
    width: 100%;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.auth-btn-submit:hover {
    background-color: #5a24a0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(111, 45, 189, 0.25);
}

.auth-btn-submit:active {
    transform: translateY(0);
}

.auth-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Social Login ──────────────────────────────────────── */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.auth-google-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-google-btn img {
    width: 18px;
    height: 18px;
}

/* ── Footer Links ──────────────────────────────────────── */

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.auth-footer a {
    color: var(--primary-purple, #6F2DBD);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-forgot {
    text-align: right;
    margin-top: 0.5rem;
}

.auth-forgot a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-purple, #6F2DBD);
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

/* ── Role Selection (Register) ─────────────────────────── */

.auth-role-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.auth-role-btn {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #6b7280;
    padding: 0.85rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.auth-role-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.auth-role-btn.active {
    border-color: var(--primary-purple, #6F2DBD);
    background: rgba(111, 45, 189, 0.04);
    color: var(--primary-purple, #6F2DBD);
    box-shadow: 0 2px 8px rgba(111, 45, 189, 0.08);
}

.auth-role-btn input[type="radio"] {
    display: none;
}

.auth-role-btn i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

/* ── Pro Fields (Register) ─────────────────────────────── */

.auth-pro-fields {
    border: 1px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    display: none;
}

.auth-pro-fields.show {
    display: block;
}

/* ── Info Note ─────────────────────────────────────────── */

.auth-note {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Mobile ────────────────────────────────────────────── */

@media (max-width: 575.98px) {
    #regForm .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .auth-role-group {
        grid-template-columns: 1fr 1fr;
    }
    .auth-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 1rem 0.75rem;
        min-height: calc(100vh - 80px);
    }
    .auth-card {
        padding: 2rem 1.25rem;
        border-radius: 0.75rem;
    }
}
