/* ========================================================
   SANATAN RAKSHA SANGH - PREMIUM AUTH STYLESHEET
   Clean, Modern, Spiritual Theme (Zero Inline CSS)
   ======================================================== */

:root {
    --auth-bg-gradient: linear-gradient(135deg, #1C0A00 0%, #3D1300 50%, #200800 100%);
    --auth-brand-gradient: linear-gradient(145deg, #E65100 0%, #FF7700 50%, #D84315 100%);
    --auth-primary: #FF7700;
    --auth-primary-dark: #D84315;
    --auth-accent: #FFD700;
    --auth-card-bg: #FFFFFF;
    --auth-text-dark: #1E293B;
    --auth-text-muted: #64748B;
    --auth-border: #E2E8F0;
    --auth-focus-ring: rgba(255, 119, 0, 0.25);
    --auth-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-body {
    min-height: 100vh;
    background: var(--auth-bg-gradient);
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--auth-text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

/* Background Subtle Spiritual Aura */
body.auth-body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 119, 0, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 980px;
    position: relative;
    z-index: 10;
}

/* Master Card Box */
.auth-card {
    background: var(--auth-card-bg);
    border-radius: 24px;
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-height: 560px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Left Brand Showcase Panel */
.auth-brand-panel {
    background: var(--auth-brand-gradient);
    color: #FFFFFF;
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::after {
    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='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%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/svg%3E");
    opacity: 0.8;
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: auto 0;
}

.auth-emblem-badge {
    width: 82px;
    height: 82px;
    background: #FFFFFF;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 3px solid #FFD700;
}

.auth-emblem-badge i {
    font-size: 2.6rem;
    color: var(--auth-primary);
}

.auth-emblem-badge img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 50%;
}

.auth-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.auth-brand-subtitle {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--auth-accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.auth-brand-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    opacity: 0.95;
    max-width: 320px;
    margin: 0 auto 25px;
}

.auth-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    max-width: 290px;
    margin: 0 auto;
}

.auth-features-list li {
    font-size: 0.86rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.16);
    padding: 8px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-features-list li i {
    color: var(--auth-accent);
    font-size: 0.9rem;
}

/* Right Form Panel */
.auth-form-panel {
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
}

.auth-form-head {
    margin-bottom: 28px;
}

.auth-head-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--auth-text-dark);
    margin-bottom: 6px;
}

.auth-head-sub {
    font-size: 0.92rem;
    color: var(--auth-text-muted);
}

/* Alerts */
.auth-alert-error {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.auth-alert-error i {
    font-size: 1.1rem;
    margin-top: 1px;
    color: #DC2626;
    flex-shrink: 0;
}

.auth-alert-success {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Groups & Inputs */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 10px 42px 10px 44px;
    font-size: 0.95rem;
    color: var(--auth-text-dark);
    background: #F8FAFC;
    border: 1.5px solid var(--auth-border);
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
}

.auth-input:focus {
    background: #FFFFFF;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-focus-ring);
}

.auth-input:focus + .auth-input-icon,
.auth-input:focus ~ .auth-input-icon {
    color: var(--auth-primary);
}

.auth-toggle-pwd {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.auth-toggle-pwd:hover {
    color: var(--auth-primary);
}

/* Options Row (Remember Me & Forgot Password) */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 24px;
    font-size: 0.88rem;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-primary);
    cursor: pointer;
    border-radius: 4px;
}

.auth-forgot-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    height: 50px;
    background: var(--auth-brand-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(230, 81, 0, 0.35);
    transition: all 0.3s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(230, 81, 0, 0.45);
    filter: brightness(1.05);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Hint / Help Info Box */
.auth-credentials-hint {
    background: #FFF8F0;
    border: 1px dashed #FFCC99;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 22px;
    font-size: 0.84rem;
    color: #7C2D12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-hint-text strong {
    color: var(--auth-primary-dark);
}

.auth-hint-btn {
    background: #FFEDD5;
    color: #9A3412;
    border: 1px solid #FDBA74;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.auth-hint-btn:hover {
    background: #FED7AA;
}

/* Back to Home & Footer */
.auth-bottom-links {
    margin-top: 22px;
    text-align: center;
}

.auth-back-link {
    color: #64748B;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: var(--auth-primary);
}

.auth-footer-copy {
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.84rem;
    position: relative;
    z-index: 10;
}

/* ========================================================
   RESPONSIVE DESIGN (RULE 2)
   ======================================================== */

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .auth-brand-panel {
        padding: 35px 25px;
        text-align: center;
    }

    .auth-features-list {
        display: none; /* Keep mobile login clean & compact */
    }

    .auth-brand-desc {
        margin-bottom: 0;
    }

    .auth-form-panel {
        padding: 35px 28px;
    }
}

@media (max-width: 480px) {
    body.auth-body {
        padding: 16px 10px;
    }

    .auth-card {
        border-radius: 18px;
    }

    .auth-brand-panel {
        padding: 28px 18px;
    }

    .auth-emblem-badge {
        width: 65px;
        height: 65px;
        margin-bottom: 14px;
    }

    .auth-emblem-badge i {
        font-size: 2rem;
    }

    .auth-brand-title {
        font-size: 1.5rem;
    }

    .auth-brand-subtitle {
        font-size: 0.76rem;
    }

    .auth-brand-desc {
        font-size: 0.88rem;
    }

    .auth-form-panel {
        padding: 28px 18px;
    }

    .auth-head-title {
        font-size: 1.5rem;
    }

    .auth-options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .auth-credentials-hint {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
