/* ================= PREMIUM LOGIN & SIGNUP STYLES ================= */
:root {
    --primary: #417E38;
    --primary-hover: #32642a;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --input-border: #e2e8f0;
    --input-focus: #417E38;
}

* {
    box-sizing: border-box;
    /* YAHAN SE EXTERNAL FONT NIKAL KAR 100% SYSTEM FONTS LAGA DIYE HAIN */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body { 
    background-color: var(--bg-color); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    margin: 0; 
    padding: 20px;
}

.form-container { 
    background-color: var(--card-bg); 
    padding: 40px; 
    border-radius: 16px; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.02); 
    width: 100%; 
    max-width: 420px; 
    text-align: center; 
    margin: 0 auto; 
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-container img.main-logo { 
    width: 80px; 
    margin-bottom: 20px; 
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(65, 126, 56, 0.15);
}

/* ================= AUTH PAGES LOGO HOVER ================= */
.form-container a img {
    transition: all 0.3s ease;
}

.form-container a:hover img {
    transform: scale(1.03);
    filter: brightness(0.85);
}

h2 { 
    color: var(--text-dark); 
    margin-bottom: 8px; 
    font-size: 24px;
    font-weight: 700;
}

p.subtitle { 
    color: var(--text-muted); 
    font-size: 15px; 
    margin-bottom: 25px; 
}

/* Yahan inputs ko modern look diya hai */
input, select, .form-control, .pass-control { 
    width: 100% !important; 
    padding: 14px 16px !important; 
    margin: 8px 0 !important; 
    border: 1.5px solid var(--input-border); 
    border-radius: 10px; 
    font-size: 15px; 
    background-color: #f8fafc;
    color: var(--text-dark);
    transition: all 0.3s ease; 
}

input:focus, select:focus, .form-control:focus, .pass-control:focus {
    outline: none;
    border-color: var(--input-focus);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(65, 126, 56, 0.1);
}

.pass-control { padding-right: 45px !important; }

button.btn-main { 
    width: 100%; 
    padding: 14px; 
    background-color: var(--primary); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 12px rgba(65, 126, 56, 0.2);
}
button.btn-main:hover { 
    background-color: var(--primary-hover); 
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(65, 126, 56, 0.3);
}
button.btn-main:disabled { 
    background-color: #94a3b8; 
    cursor: not-allowed; 
    transform: none;
    box-shadow: none;
}

a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.error-msg { 
    color: #ef4444; 
    font-size: 14px; 
    margin-bottom: 15px; 
    display: none; 
    font-weight: 600; 
    background: #fef2f2;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #fee2e2;
}

/* Email aur OTP inputs ke liye extra right padding taake text button ke neechay na chhupe */
#email, #otp_code {
    padding-right: 110px !important;
}

.link-text { margin-top: 25px; font-size: 14px; color: var(--text-muted); }

/* ================= FORGOT PASSWORD ================= */
.forgot-pass-container { text-align: right; margin-top: -2px; margin-bottom: 20px; }
.forgot-pass-link { font-size: 14px; color: var(--text-muted); font-weight: 500; transition: 0.2s;}
.forgot-pass-link:hover { color: var(--primary); }

/* ================= MULTI-STEP SIGNUP ================= */
.step { display: none; text-align: left;}
.step.active { display: block; animation: fadeIn 0.4s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-bar { display: flex; justify-content: space-between; margin-bottom: 25px; gap: 8px; }
.progress-step { flex: 1; height: 6px; background-color: #e2e8f0; border-radius: 6px; transition: 0.4s ease; }
.progress-step.active { background-color: var(--primary); }

.btn-group { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px;}
.btn-outline { 
    width: 100%; 
    padding: 14px; 
    background-color: transparent; 
    color: var(--text-muted); 
    border: 1.5px solid #cbd5e1; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600; 
    transition: 0.3s; 
}
.btn-outline:hover { 
    background-color: #f1f5f9; 
    color: var(--text-dark);
    border-color: #94a3b8;
}

/* ================= OTP & PASSWORD SPECIFIC ================= */
.position-relative { position: relative; margin-bottom: 15px; margin-top: 5px;}
.btn-inside-input { 
    position: absolute; 
    right: 6px; 
    top: 50%; 
    transform: translateY(-50%); 
    background-color: var(--primary); 
    color: white; 
    border: none; 
    padding: 8px 16px; 
    border-radius: 8px; 
    font-size: 13px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: 0.2s; 
    z-index: 2;
}
.btn-inside-input:hover { background-color: var(--primary-hover); }
.btn-verify { background-color: #1e293b; }
.btn-verify:hover { background-color: #0f172a; }

.eye-icon { 
    position: absolute; 
    right: 16px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #94a3b8; 
    cursor: pointer; 
    font-size: 18px; 
    transition: 0.2s; 
    z-index: 2;
    padding: 5px;
}
.eye-icon:hover { color: var(--primary); }
.msg-box { display: block; margin-top: 5px; font-size: 13px; font-weight: 500; text-align: left; color: var(--text-muted);}

/* ================= GENDER BUTTONS ================= */
.gender-toggle-box { 
    display: flex; 
    background: #f1f5f9; 
    border-radius: 10px; 
    border: 1px solid #e2e8f0; 
    overflow: hidden; 
    margin: 8px 0 20px 0; 
    padding: 4px;
    gap: 4px;
}
.gender-toggle-box input[type="radio"] { display: none; }
.gender-toggle-box label { 
    flex: 1; 
    text-align: center; 
    padding: 12px; 
    cursor: pointer; 
    font-size: 14px; 
    color: var(--text-muted); 
    transition: 0.3s ease; 
    margin: 0; 
    border-radius: 8px;
    font-weight: 500;
}
.gender-toggle-box input[type="radio"]:checked + label { 
    background: var(--card-bg); 
    color: var(--primary); 
    font-weight: 600; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); 
}

/* ================= AUTOCOMPLETE (No Changes) ================= */
.relative-box { position: relative; }
.autocomplete-list { position: absolute; background: white; border: 1px solid #ddd; border-radius: 5px; max-height: 150px; overflow-y: auto; z-index: 1000; width: 100%; display: none; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: left;}
.autocomplete-item { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; font-size: 14px; display: flex; align-items: center; gap: 10px;}
.autocomplete-item:hover { background-color: #f0f8ff; }
.autocomplete-item img { width: 22px; height: auto; border-radius: 2px; }