/* ============================================================
   Noakhali Zela Somiti — Auth Pages Styles
   ============================================================ */

.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Inter", "SolaimanLipi", "Noto Sans Bengali", sans-serif;
    background: var(--bg-body, #f8faf9);
    color: var(--text-main, #1f2933);
}

/* ---------- Layout ---------- */
.login-container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-card, #ffffff);
    box-shadow: var(--shadow-soft, 0 4px 18px rgba(0, 0, 0, 0.1));
}

/* ---------- Left Showcase Panel ---------- */
.auth-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    background: linear-gradient(135deg, var(--primary-green, #18a957) 0%, var(--dark-green, #087a3d) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-showcase::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.auth-brand img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    padding: 4px;
}

.auth-brand span {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: "Poppins", "SolaimanLipi", "Noto Sans Bengali", sans-serif;
}

.auth-showcase-content {
    position: relative;
    z-index: 1;
}

.auth-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.auth-showcase-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    font-family: "Poppins", "SolaimanLipi", "Noto Sans Bengali", sans-serif;
}

.auth-showcase-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 400px;
}

/* ---------- Right Login Panel ---------- */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    background: var(--bg-white, #fff);
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 30px;
}

.auth-mobile-logo img {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, #667085);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 30px;
    transition: color 0.25s ease;
}

.auth-back-link:hover {
    color: var(--primary-green, #18a957);
}

.form-header {
    margin-bottom: 30px;
}

.form-header span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green, #18a957);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main, #1f2933);
    margin: 8px 0 10px;
    font-family: "Poppins", "SolaimanLipi", "Noto Sans Bengali", sans-serif;
}

.form-header p {
    color: var(--text-muted, #667085);
    font-size: 0.95rem;
}

/* ---------- Alert ---------- */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ---------- Form Fields ---------- */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main, #1f2933);
    margin-bottom: 8px;
}

.auth-field .input-group {
    display: flex;
    align-items: center;
    background: var(--bg-soft, #eaf8f0);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0 14px;
    transition: all 0.25s ease;
}

.auth-field .input-group:focus-within {
    border-color: var(--primary-green, #18a957);
    background: var(--bg-white, #fff);
    box-shadow: 0 0 0 4px rgba(24, 169, 87, 0.1);
}

.auth-field .input-group i {
    color: var(--text-muted, #667085);
    font-size: 1.1rem;
}

.auth-field .input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 13px 10px;
    font-size: 0.95rem;
    color: var(--text-main, #1f2933);
    min-width: 0;
}

.auth-field .input-group input::placeholder {
    color: #a0aec0;
}

.auth-field .input-group .toggle-password {
    background: none;
    border: none;
    color: var(--text-muted, #667085);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.auth-field .input-group .toggle-password:hover {
    color: var(--primary-green, #18a957);
}

.auth-field .text-danger {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #dc2626;
}

/* ---------- Options Row ---------- */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.login-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, #667085);
    cursor: pointer;
}

.login-options label input[type="checkbox"] {
    accent-color: var(--primary-green, #18a957);
    width: 16px;
    height: 16px;
}

.login-options a {
    color: var(--primary-green, #18a957);
    text-decoration: none;
    font-weight: 500;
}

.login-options a:hover {
    text-decoration: underline;
}

/* ---------- Login Button ---------- */
.login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-green, #18a957);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.login-btn:hover {
    background: var(--dark-green, #087a3d);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(24, 169, 87, 0.3);
}

/* ---------- Signup Text ---------- */
.signup-text {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted, #667085);
    font-size: 0.9rem;
}

.signup-text a {
    color: var(--primary-green, #18a957);
    text-decoration: none;
    font-weight: 600;
}

.signup-text a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .auth-showcase {
        display: none;
    }

    .login-panel {
        padding: 40px 24px;
    }

    .auth-mobile-logo {
        display: block;
    }

    .auth-back-link {
        margin-bottom: 20px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }
}

/* ---------- Authentication Card (for guest-layout pages) ---------- */
.auth-card-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border-col, #e5e7eb);
    border-radius: 16px;
    box-shadow: var(--shadow-soft, 0 4px 18px rgba(0, 0, 0, 0.1));
    padding: 32px;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main, #1f2933);
    margin-bottom: 8px;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="number"] {
    width: 100%;
    background: var(--bg-soft, #eaf8f0);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--text-main, #1f2933);
    outline: none;
    transition: all 0.25s ease;
}

.auth-card input:focus {
    border-color: var(--primary-green, #18a957);
    background: var(--bg-white, #fff);
    box-shadow: 0 0 0 4px rgba(24, 169, 87, 0.1);
}

.auth-card input::placeholder {
    color: #a0aec0;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] .auth-page {
    background: var(--bg-body, #08101a);
}

[data-theme="dark"] .login-container {
    background: var(--bg-card, #111b2f);
}

[data-theme="dark"] .login-panel {
    background: var(--bg-card, #111b2f);
}

[data-theme="dark"] .form-header h2 {
    color: var(--text-main, #e8edf8);
}

[data-theme="dark"] .auth-field label {
    color: var(--text-main, #e8edf8);
}

[data-theme="dark"] .auth-field .input-group {
    background: var(--bg-soft, #172644);
}

[data-theme="dark"] .auth-field .input-group:focus-within {
    background: var(--bg-card, #111b2f);
}

[data-theme="dark"] .auth-field .input-group input {
    color: var(--text-main, #e8edf8);
}

[data-theme="dark"] .auth-field .input-group input::placeholder {
    color: #64748b;
}
