/* Gaon Radio brand tokens — shared across storefront, auth, admin, vendor pages */
:root {
    --gr-primary: #2e7d32;
    --gr-primary-dark: #1b5e20;
    --gr-primary-soft: #e8f5e9;
    --gr-accent: #f57c00;
    --gr-accent-dark: #e65100;
    --gr-accent-soft: #fff4e5;
    --gr-cream: #fffaf2;
    --gr-text: #2d2d2d;
    --gr-text-soft: #6c757d;
    --gr-border: #e6e0d4;
    --gr-radius: 8px;
}

/* Centered single-column auth shell — full screen, no header/footer.
   Used by admin login, vendor login, vendor register, customer login/register. */
.gr-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        linear-gradient(135deg, rgba(27, 94, 32, 0.92) 0%, rgba(46, 125, 50, 0.85) 50%, rgba(13, 58, 16, 0.95) 100%),
        url('/storefront/images/home/hero-achaar.jpg') center/cover fixed;
    font-family: 'Rubik', 'Noto Sans Devanagari', sans-serif;
    color: var(--gr-text);
}
.gr-auth-shell[lang="hi"] { font-family: 'Noto Sans Devanagari', 'Rubik', sans-serif; }

/* Hide split-screen aside if any view still includes it (back-compat) */
.gr-auth-side { display: none !important; }

.gr-auth-form {
    width: 100%;
    max-width: 480px;
    background: white;
    margin: 0 auto;
    padding: 2.5rem 2.25rem;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}
@media (max-width: 575px) {
    .gr-auth-form { padding: 1.75rem 1.25rem; border-radius: 10px; }
}

.gr-auth-form .logo {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--gr-primary);
    text-decoration: none;
    display: block;
}
.gr-auth-form .logo span { color: var(--gr-accent); }
.gr-auth-form h2 { font-size: 1.4rem; font-weight: 600; color: var(--gr-primary-dark); margin-bottom: 0.4rem; }
.gr-auth-form p.tagline { color: var(--gr-text-soft); margin-bottom: 1.5rem; font-size: 0.95rem; }
.gr-auth-form label { font-weight: 500; color: var(--gr-text); margin-bottom: 0.3rem; font-size: 0.9rem; }
.gr-auth-form .form-control,
.gr-auth-form .form-select {
    border: 1px solid var(--gr-border);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
}
.gr-auth-form .form-control:focus,
.gr-auth-form .form-select:focus {
    border-color: var(--gr-primary);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}

/* Password eye toggle — wrapper added by gr-password-toggle.js */
.gr-pwd-wrapper { position: relative; }
.gr-pwd-wrapper .form-control { padding-right: 2.6rem; }
.gr-pwd-toggle {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--gr-text-soft);
    padding: 0.25rem;
    line-height: 1;
    font-size: 1rem;
    border-radius: 4px;
}
.gr-pwd-toggle:hover { color: var(--gr-primary); background: var(--gr-cream); }
.gr-pwd-toggle:focus-visible { outline: 2px solid var(--gr-primary); outline-offset: 2px; }

.gr-auth-form .btn-submit {
    background: var(--gr-primary);
    color: white;
    border: none;
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}
.gr-auth-form .btn-submit:hover { background: var(--gr-primary-dark); color: white; }
.gr-auth-form .btn-secondary-cta {
    background: var(--gr-accent);
    color: white;
    border: none;
    width: 100%;
    padding: 0.7rem;
    border-radius: 6px;
    font-weight: 600;
}
.gr-auth-form .btn-secondary-cta:hover { background: var(--gr-accent-dark); color: white; }

.gr-auth-form .alt-link { color: var(--gr-primary); text-decoration: none; font-weight: 500; }
.gr-auth-form .alt-link:hover { color: var(--gr-primary-dark); text-decoration: underline; }

.gr-auth-form .alert-success { background: var(--gr-primary-soft); border: 1px solid var(--gr-primary); color: var(--gr-primary-dark); }
.gr-auth-form .alert-danger { background: #fce8e8; border: 1px solid #d32f2f; color: #b32525; }

.gr-auth-form .form-check-input:checked { background-color: var(--gr-primary); border-color: var(--gr-primary); }

.gr-auth-form hr { border-color: var(--gr-border); }
