/* SmartSchool SMS - Auth Stylesheet v2 */
:root {
    --auth-primary: #2563eb;
    --auth-secondary: #1d4ed8;
}

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

body {
    min-height: 100vh;
    background: #f1f5f9;
    font-size: .875rem;
}

/* Split layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
}

.auth-brand-panel {
    background: linear-gradient(145deg, #1e3a5f 0%, #1e293b 60%, #0f172a 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    top: -80px; right: -80px;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    bottom: -60px; left: -60px;
}

.auth-brand-panel .brand-icon {
    width: 80px; height: 80px;
    background: rgba(255,255,255,.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
}

.auth-brand-panel h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.auth-brand-panel p {
    color: rgba(255,255,255,.75);
    text-align: center;
    font-size: .875rem;
    line-height: 1.6;
    max-width: 280px;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.auth-feature-list li {
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    padding: .35rem 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.auth-feature-list li i {
    width: 20px; height: 20px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    flex-shrink: 0;
}

/* Form panel */
.auth-form-panel {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form-box {
    width: 100%;
    max-width: 400px;
}

.auth-form-box .auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .25rem;
}

.auth-form-box .auth-subtitle {
    color: #94a3b8;
    font-size: .85rem;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 500;
    font-size: .82rem;
    color: #475569;
    margin-bottom: .3rem;
}

.form-control {
    border-radius: 8px;
    padding: .55rem .75rem;
    border: 1px solid #d1d9e6;
    font-size: .875rem;
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.input-group-text {
    background: #f8fafc;
    border: 1px solid #d1d9e6;
    border-right: none;
    color: #64748b;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    box-shadow: none;
    border-color: var(--auth-primary);
}

.input-group:focus-within .input-group-text {
    border-color: var(--auth-primary);
    background: #eff6ff;
    color: var(--auth-primary);
}

.input-group:focus-within .form-control {
    border-color: var(--auth-primary);
}

.btn-primary {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
    border: none;
    padding: .6rem 1rem;
    font-weight: 600;
    font-size: .88rem;
    border-radius: 8px;
    transition: all .2s;
}

.btn-primary:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
    background-color: var(--auth-secondary);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #cbd5e1;
    font-size: .78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8edf3;
}

.demo-accounts {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    padding: .875rem 1rem;
}

.demo-accounts .demo-title {
    font-size: .72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .6rem;
}

.demo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .25rem 0;
    font-size: .78rem;
    border-bottom: 1px solid #f1f5f9;
}

.demo-item:last-child { border-bottom: none; }
.demo-item .demo-role { color: #475569; font-weight: 500; }
.demo-item .demo-cred { color: #94a3b8; font-family: monospace; font-size: .75rem; }

@media (max-width: 767.98px) {
    .auth-brand-panel { display: none; }
    .auth-form-panel { padding: 1.5rem 1rem; }
}
