/* সোলাইমান লিপি ফন্টের সিডিএন লিংক */
@import url('https://banglawebfonts.pages.dev/css/solaiman-lipi.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-green: #10B981;
    --secondary-green: #059669;
    --primary-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --bg-app: #F0FDF4;
    --card-bg: #FFFFFF;
    --alert-red: #EF4444;
    --text-dark: #1F2937;
    --text-muted: #4B5563;
    --border-color: #E5E7EB;
    --shadow-soft: 0 4px 12px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Solaiman Lipi', 'Inter', sans-serif;
}

body {
    background-color: var(--card-bg);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

/* মোবাইল মেইন কন্টেইনার */
.mobile-container {
    width: 100%;
    min-height: 100vh;
    background-color: var(--card-bg);
    padding: 14px;
    display: flex;
    flex-direction: column;
}

/* ট্যাবলেট এবং ডেস্কটপ ভিউ */
@media (min-width: 481px) {
    body {
        background-color: var(--bg-app);
        align-items: center;
        padding: 24px 12px;
    }
    .mobile-container {
        max-width: 395px;
        margin: 0 auto;
        min-height: auto;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
        border: 1px solid rgba(16, 185, 129, 0.1);
        padding: 20px 16px;
    }
}

/* ব্র্যান্ডিং এরিয়া */
.brand-header {
    text-align: center;
    padding: 20px 10px 10px 10px;
}

.logo {
    width: 76px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.04));
}

.brand-name {
    color: var(--secondary-green);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.sub-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ফর্ম কার্ড */
.form-card {
    background-color: var(--card-bg);
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(241, 245, 249, 0.8);
    margin-top: 10px;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-green);
    padding-left: 8px;
}

/* ইনপুট গ্রুপ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    background-color: #F9FAFB;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* বাটন স্টাইল */
.btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.btn-secondary {
    background-color: #0f172a;
    color: #ffffff;
}

/* শো পাসওয়ার্ড */
.show-password-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 6px 0;
}

.show-password-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.show-password-container label {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
}

/* টগল টেক্সট (লগইন <-> সাইনআপ) */
.toggle-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 18px;
}

.toggle-text a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    padding: 6px 4px;
}

/* কাস্টম অ্যালার্ট ও মোডাল (লগইন এরর দেখানোর জন্য প্রয়োজন) */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: all 0.2s ease;
    padding: 16px;
}

.custom-modal-overlay.active {
    opacity: 1; visibility: visible;
}

.custom-modal-card {
    background: white;
    width: 100%; max-width: 320px;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.modal-icon { font-size: 38px; margin-bottom: 8px; }
.modal-title { font-size: 1.15rem; font-weight: 700; }
.modal-message { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.modal-buttons { display: flex; gap: 8px; }
.modal-btn { height: 38px; border-radius: 8px; font-weight: 700; flex: 1; border: none; cursor: pointer; }
.btn-confirm { background: var(--primary-green); color: white; }
.btn-danger { background: var(--alert-red); color: white; }

.hidden { display: none !important; }