/* DigiNotary — Authentication Portal Stylesheet */

/* ── Auth Body ─────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    font-family: 'Manrope', system-ui, sans-serif;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* ── Left Brand Panel ──────────────────────────────────────────── */
.auth-brand-panel {
    width: 420px;
    flex-shrink: 0;
    background: #EBF7F9; /* Very light brand blue/cyan */
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Decorative orbs */
.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(0,163,196,0.10) 0%, transparent 70%);
    top: -120px; right: -100px;
    border-radius: 50%;
    pointer-events: none;
}
.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(0,163,196,0.06) 0%, transparent 70%);
    bottom: -80px; left: -60px;
    border-radius: 50%;
    pointer-events: none;
}

.auth-panel-top { position: relative; }
.auth-panel-logo {
    max-height: 44px;
    width: auto;
    filter: none !important;
    mix-blend-mode: multiply !important; /* Make white transparent */
    margin-bottom: 3rem;
}

.auth-panel-headline {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--color-secondary); /* Brand dark blue */
    line-height: 1.25;
    margin-bottom: 0.875rem;
}
.auth-panel-headline .teal { color: var(--color-accent); }

.auth-panel-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Feature bullets */
.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}
.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.auth-feature-check {
    width: 22px; height: 22px;
    background: rgba(67,192,184,0.12);
    border: 1px solid rgba(67,192,184,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
    font-size: 0.7rem;
}

.auth-panel-bottom {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}
.auth-panel-back {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}
.auth-panel-back:hover { color: var(--color-primary); }

/* ── Right Form Panel ───────────────────────────────────────────── */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background-color: #F0F2F8;
}

.auth-form-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.75rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(22,6,70,0.08);
}

/* Mobile: single column */
@media (max-width: 767.98px) {
    .auth-brand-panel { display: none; }
    .auth-form-panel  { background: var(--color-secondary); }
    .auth-form-card   { margin: 1rem; }
}

/* ── Mobile Brand Header (shown only on mobile) ─────────────────── */
.auth-mobile-header {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-mobile-header img {
    height: 40px;
    filter: none !important;
    mix-blend-mode: multiply !important;
}
@media (max-width: 767.98px) {
    .auth-mobile-header { display: block; }
}

/* ── Form Elements ──────────────────────────────────────────────── */
.auth-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 0.35rem;
}
.auth-form-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.auth-field { margin-bottom: 1.25rem; }

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.auth-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text);
    display: block;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #FAFBFF;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
    background-color: #fff;
}

/* Alerts */
.auth-alert {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.auth-alert--error {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.auth-alert--info {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}
.auth-alert--success {
    background-color: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

/* Links */
.auth-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: color 0.15s;
}
.auth-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Submit button */
.auth-btn--primary {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.75rem;
    box-shadow: 0 4px 16px rgba(67,192,184,0.30);
}
.auth-btn--primary:hover {
    box-shadow: 0 6px 24px rgba(67,192,184,0.40);
    transform: translateY(-1px);
}
.auth-btn--primary:active {
    transform: scale(0.98);
    box-shadow: none;
}

/* Footer note */
.auth-footer-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* ── Fallback compatibility ─────────────────────────────────────── */
.auth-body {
    background-color: var(--color-bg);
    font-family: 'Manrope', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.auth-container { width: 100%; max-width: 440px; }
.auth-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 2rem;
}
.auth-btn { /* alias */ }
