/*
 * ═══════════════════════════════════════════════════
 *  Solosmartpedia — Auth Pages Shared CSS
 *  Covers: signin, signup, forgot
 * ═══════════════════════════════════════════════════
 */

/* ── Base ── */
body { background: var(--custom-white, #f8fafc); }

* { box-sizing: border-box; }

body, input, button, textarea, select, .auth-card, .fg-card {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
}

/* ════════════════════════════════
   SHARED WRAPPER & PANELS
════════════════════════════════ */

/* signin & signup share .auth-* */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-card  { width: 100%; max-width: 440px; }

/* Signup has wider card */
.auth-card-wide { width: 100%; max-width: 520px; }

.auth-right {
    width: 50%;
    background: linear-gradient(145deg, #0d47c4 0%, #136bfe 55%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}

.auth-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-right-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}
.auth-right-blob.b1 { width: 300px; height: 300px; background: #93c5fd; top: -80px; right: -80px; }
.auth-right-blob.b2 { width: 200px; height: 200px; background: #bfdbfe; bottom: -60px; left: -60px; }

.auth-right-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 380px;
}

.auth-right-content h1,
.auth-right-content h2,
.auth-right-content h3,
.auth-right-content h4,
.auth-right-content h5,
.auth-right-content h6 {
    color: #fff !important;
    font-weight: 800;
    line-height: 1.25;
}

.auth-right-content h2  { font-size: 1.9rem; margin-bottom: 0.75rem; }
.auth-right-content p   { color: rgba(255,255,255,0.82) !important; font-size: 0.9rem; line-height: 1.7; }

/* ── Auth right icon box ── */
.auth-icon-box {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Tier cards (signup) */
.tier-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    backdrop-filter: blur(8px);
    transition: background 0.2s;
}
.tier-card:hover { background: rgba(255,255,255,0.18); }
.tier-card .tier-icon { font-size: 1.4rem; flex-shrink: 0; }
.tier-card .tier-info h6 { margin: 0; font-size: 0.83rem; font-weight: 700; color: #fff !important; }
.tier-card .tier-info p  { margin: 0; font-size: 0.73rem; color: rgba(255,255,255,0.72) !important; }

/* Feature pills (signin) */
.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin: 0.2rem;
    backdrop-filter: blur(8px);
    transition: background 0.2s;
}
.feature-pill:hover { background: rgba(255,255,255,0.22); }


/* ════════════════════════════════
   FORGOT PAGE — fg- prefix (scoped)
════════════════════════════════ */

.fg-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.fg-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.fg-card { width: 100%; max-width: 420px; }

.fg-right {
    width: 50%;
    background: linear-gradient(145deg, #0d47c4 0%, #136bfe 55%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}

.fg-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.fg-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.3; }
.fg-blob.b1 { width: 250px; height: 250px; background: #93c5fd; top: -60px; right: -60px; }
.fg-blob.b2 { width: 180px; height: 180px; background: #bfdbfe; bottom: -50px; left: -50px; }

.fg-content {
    position: relative;
    z-index: 1;
    color: #fff;
    width: 100%;
    max-width: 360px;
}

.fg-content h1,
.fg-content h2,
.fg-content h3,
.fg-content h4,
.fg-content h5,
.fg-content h6 { color: #fff !important; font-weight: 800; line-height: 1.25; }

.fg-content h2  { font-size: 1.8rem; margin-bottom: 0.75rem; }
.fg-content p   { color: rgba(255,255,255,0.82) !important; font-size: 0.9rem; line-height: 1.7; }

.fg-icon-box {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Step items */
.fg-step { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.fg-step-num {
    width: 36px; height: 36px; min-width: 36px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem;
    color: #fff; backdrop-filter: blur(8px); flex-shrink: 0;
}
.fg-step-info h6 { margin: 0; font-size: 0.88rem; font-weight: 700; color: #fff !important; }
.fg-step-info p  { margin: 0.2rem 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.72) !important; }


/* ════════════════════════════════
   SHARED FORM ELEMENTS
════════════════════════════════ */

.form-floating-custom,
.fg-form-group {
    position: relative;
    margin-bottom: 0.25rem;
}

.form-floating-custom .form-control,
.fg-form-group .form-control {
    height: 50px;
    padding: 0.7rem 1rem 0.7rem 3rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--default-border, #e2e8f0);
    background: var(--custom-white, #fff);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-floating-custom .form-control:focus,
.fg-form-group .form-control:focus {
    border-color: #136bfe;
    box-shadow: 0 0 0 4px rgba(19, 107, 254, 0.12);
}

.form-floating-custom .form-control.no-left-pad,
.form-floating-custom textarea.form-control {
    padding-left: 1rem;
}

.input-icon, .fg-icon {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 0.95rem; pointer-events: none; z-index: 2;
}

.input-toggle, .fg-toggle {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #94a3b8; cursor: pointer; padding: 0; z-index: 2;
    transition: color 0.2s;
}
.input-toggle:hover, .fg-toggle:hover { color: #136bfe; }


/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */

.btn-auth, .fg-btn {
    height: 50px;
    width: 100%;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #136bfe 0%, #0d47c4 100%);
    border: none;
    color: #fff !important;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 4px 15px rgba(19, 107, 254, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-auth:hover, .fg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(19, 107, 254, 0.45);
    filter: brightness(1.08);
    color: #fff !important;
}

.btn-auth:active, .fg-btn:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

.btn-auth:disabled, .fg-btn:disabled {
    opacity: 0.72;
    transform: none;
    cursor: not-allowed;
}


/* ════════════════════════════════
   AUTH LINKS
════════════════════════════════ */

.auth-link {
    color: #136bfe;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; width: 0;
    height: 1.5px;
    background: #136bfe;
    transition: width 0.25s ease;
    border-radius: 2px;
}

.auth-link:hover { color: #0d47c4; }
.auth-link:hover::after { width: 100%; }


/* ════════════════════════════════
   MISC SHARED HELPERS
════════════════════════════════ */

.form-label-sm, .fg-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--default-text-color);
    margin-bottom: 0.3rem;
    display: block;
}

.error, .fg-error {
    color: #f43f5e;
    font-size: 0.76rem;
    margin-top: 0.25rem;
    display: block;
}

.auth-divider, .fg-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after,
.fg-divider::before,   .fg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--default-border, #e2e8f0);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */

@media (max-width: 991px) {
    .auth-right, .fg-right { display: none; }
    .auth-left,  .fg-left  { width: 100%; }
}
