/* ShyamSphere Auth Pages (Login / Forgot Password) */
:root {
    --ss-navy: #003366;
    --ss-navy-dark: #001f3f;
    --ss-navy-light: #004d99;
    --ss-orange: #ff9900;
    --ss-orange-dark: #e68a00;
    --ss-white: #ffffff;
    --ss-gray-50: #f8fafc;
    --ss-gray-100: #f1f5f9;
    --ss-gray-200: #e2e8f0;
    --ss-gray-400: #94a3b8;
    --ss-gray-600: #64748b;
    --ss-gray-800: #1e293b;
    --ss-shadow: 0 20px 60px rgba(0, 51, 102, 0.15);
    --ss-radius: 14px;
    --ss-transition: all 0.25s ease;
}

* {
    box-sizing: border-box;
}

body.ss-auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--ss-gray-800);
    background: var(--ss-gray-50);
}

.ss-auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Brand Panel */
.ss-auth-brand {
    flex: 1;
    background: linear-gradient(145deg, var(--ss-navy-dark) 0%, var(--ss-navy) 45%, var(--ss-navy-light) 100%);
    color: var(--ss-white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ss-auth-brand::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ss-auth-brand::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.ss-auth-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: 0 auto;
}

.ss-auth-brand img {
    max-width: 220px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

.ss-auth-brand img.ss-auth-institute-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 10px;
}

.ss-auth-institute-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.ss-auth-brand-tenant h1 {
    font-size: 1.75rem;
    line-height: 1.3;
}

.ss-auth-brand h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.ss-auth-brand h1 .highlight {
    color: var(--ss-orange);
}

.ss-auth-brand p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.ss-auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ss-auth-features li {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.ss-auth-features li i {
    color: var(--ss-orange);
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Form Panel */
.ss-auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--ss-white);
}

.ss-auth-form-container {
    width: 100%;
    max-width: 420px;
}

.ss-auth-back-home {
    display: inline-flex;
    align-items: center;
    color: var(--ss-gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--ss-transition);
}

.ss-auth-back-home:hover {
    color: var(--ss-orange);
    text-decoration: none;
}

.ss-auth-back-home i {
    margin-right: 0.5rem;
}

.ss-auth-form-header {
    margin-bottom: 2rem;
}

.ss-auth-form-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ss-navy);
    margin-bottom: 0.5rem;
}

.ss-auth-form-header p {
    color: var(--ss-gray-600);
    margin: 0;
    font-size: 0.95rem;
}

.ss-auth-portal-badge {
    display: inline-block;
    background: var(--ss-gray-100);
    color: var(--ss-navy);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.ss-auth-alert {
    border-radius: var(--ss-radius);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.ss-auth-alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.ss-auth-alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.ss-auth-field {
    margin-bottom: 1.25rem;
}

.ss-auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ss-navy);
    margin-bottom: 0.5rem;
}

.ss-auth-input-wrap {
    position: relative;
}

.ss-auth-input-wrap i.field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ss-gray-400);
    font-size: 0.95rem;
    pointer-events: none;
}

.ss-auth-input-wrap input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 2px solid var(--ss-gray-200);
    border-radius: var(--ss-radius);
    font-size: 0.95rem;
    transition: var(--ss-transition);
    background: var(--ss-white);
    color: var(--ss-gray-800);
}

.ss-auth-input-wrap input:focus {
    outline: none;
    border-color: var(--ss-navy);
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.08);
}

.ss-auth-input-wrap .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ss-gray-400);
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    transition: var(--ss-transition);
}

.ss-auth-input-wrap .toggle-password:hover {
    color: var(--ss-navy);
}

.ss-auth-input-wrap.has-toggle input {
    padding-right: 2.75rem;
}

.ss-field-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.ss-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ss-auth-remember {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ss-gray-600);
    margin: 0;
}

.ss-auth-remember input {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    accent-color: var(--ss-navy);
    cursor: pointer;
}

.ss-auth-forgot {
    color: var(--ss-orange);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--ss-transition);
}

.ss-auth-forgot:hover {
    color: var(--ss-orange-dark);
    text-decoration: none;
}

.ss-auth-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--ss-navy), var(--ss-navy-light));
    color: var(--ss-white);
    border: none;
    border-radius: var(--ss-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ss-transition);
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.25);
}

.ss-auth-submit:hover {
    background: linear-gradient(135deg, var(--ss-orange), var(--ss-orange-dark));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 153, 0, 0.35);
}

.ss-auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--ss-gray-600);
}

.ss-validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--ss-radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    color: #b91c1c;
    font-size: 0.9rem;
    list-style: none;
}

.ss-validation-summary ul {
    margin: 0;
    padding-left: 1rem;
}

/* Mobile */
@media (max-width: 991px) {
    .ss-auth-wrapper {
        flex-direction: column;
    }

    .ss-auth-brand {
        padding: 2.5rem 2rem;
        text-align: center;
    }

    .ss-auth-brand img {
        max-width: 160px;
    }

    .ss-auth-brand h1 {
        font-size: 1.5rem;
    }

    .ss-auth-features {
        display: none;
    }

    .ss-auth-form-panel {
        padding: 2rem 1.5rem 3rem;
    }
}

@media (max-width: 576px) {
    .ss-auth-form-header h2 {
        font-size: 1.5rem;
    }
}
