/* =====================================================
   auth.css — Sign-In Modal, Profile Form (Light Theme)
   ===================================================== */

/* ── Modal Overlay ────────────────────────────────── */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.auth-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Auth Modal Card ──────────────────────────────── */
.auth-modal {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal-overlay.open .auth-modal {
    transform: translateY(0) scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-1);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t);
}
.auth-modal-close:hover {
    background: var(--bg-2);
    color: var(--text-1);
}

/* ── Brand in Modal ───────────────────────────────── */
.auth-modal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.auth-modal-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.auth-modal-logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

/* ── Sign-In Content ──────────────────────────────── */
.auth-modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.auth-modal-sub {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.55;
    margin-bottom: 28px;
}

/* ── Google Sign-In Button ────────────────────────── */
.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-mid);
    background: #fff;
    color: var(--text-1);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--t);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.google-signin-btn:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}
.google-signin-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.google-icon { flex-shrink: 0; }
.google-btn-text { flex: 1; text-align: center; }

/* ── Terms ────────────────────────────────────────── */
.auth-modal-terms {
    font-size: 0.75rem;
    color: var(--text-3);
    text-align: center;
    margin-top: 16px;
    line-height: 1.55;
}
.auth-modal-terms a {
    color: var(--green-dark);
    text-decoration: underline;
}

/* ── Trust Badges ─────────────────────────────────── */
.auth-modal-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.auth-modal-trust span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Profile Modal ────────────────────────────────── */
.profile-modal-overlay {
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
    overflow-y: auto;
}

.profile-modal {
    max-width: 640px;
    max-height: none;
}

.profile-modal-header {
    margin-bottom: 28px;
}

.profile-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(22,163,74,0.08);
    border: 1px solid rgba(22,163,74,0.2);
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Profile Form ─────────────────────────────────── */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-1);
}

.profile-field .req { color: var(--red); }

.profile-field input,
.profile-field select,
.profile-field textarea {
    width: 100%;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-1);
    font-family: var(--font);
    transition: var(--t);
    outline: none;
    appearance: none;
}

.profile-field input:focus,
.profile-field select:focus,
.profile-field textarea:focus {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.profile-field input::placeholder,
.profile-field textarea::placeholder { color: var(--text-3); }
.profile-field input[readonly] { background: var(--bg-2); cursor: not-allowed; color: var(--text-2); }
.profile-field select { cursor: pointer; }
.profile-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

/* ── Submit Button inside Profile ─────────────────── */
.profile-submit-btn {
    width: 100%;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
}

/* ── Profile Skip Note ────────────────────────────── */
.profile-skip-note {
    font-size: 0.78rem;
    color: var(--text-3);
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
}
.profile-skip-note strong { color: var(--green-dark); }

/* ── Toast Notifications ──────────────────────────── */
.dt-toast {
    position: fixed;
    bottom: 32px;
    right: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--text-1);
    color: #fff;
    border-radius: 12px;
    padding: 14px 20px;
    max-width: 380px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: all;
}
.dt-toast.visible { transform: translateX(0); }

.dt-toast.success {
    background: var(--green);
    color: #fff;
}

.dt-toast-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.dt-toast-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.dt-toast-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
}
.dt-toast-close {
    margin-left: auto;
    flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border: none;
    color: rgba(255,255,255,0.8);
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t);
}
.dt-toast-close:hover { background: rgba(255,255,255,0.3); color: #fff; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
    .auth-modal { padding: 28px 20px; }
    .profile-form-row { grid-template-columns: 1fr; }
    .dt-toast { right: 16px; left: 16px; max-width: none; }
}
