/* Praxis branded auth pages — shared by sign-in, lost-password, reset-password */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: #1a1a2e;
    display: flex;
    min-height: 100vh;
}

/* --- Brand Panel (left) --- */
.login-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42%;
    background: #d9ecff;
    color: #1a1a2e;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(41, 133, 226, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(252, 206, 30, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-brand img {
    max-width: 200px;
    height: auto;
    margin-bottom: 2.5rem;
}

.login-brand h2 {
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.login-brand p {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(26, 26, 46, 0.5);
}

/* --- Form Panel (right) --- */
.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem;
    background: #f8f9fa;
}

.login-container {
    width: 100%;
    max-width: 380px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.04);
    padding: 2.25rem;
}

.login-card h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.login-card p.login-intro {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.login-card label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: #495057;
}

.login-card input[type="text"],
.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-card input[type="text"]:focus,
.login-card input[type="email"]:focus,
.login-card input[type="password"]:focus {
    outline: none;
    border-color: #2985e2;
    box-shadow: 0 0 0 3px rgba(41, 133, 226, 0.15);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: #495057;
}

.login-card input[type="submit"],
.login-card button[type="submit"] {
    width: 100%;
    padding: 0.6875rem;
    background: #2985e2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.login-card input[type="submit"]:hover,
.login-card button[type="submit"]:hover {
    background: #2274c7;
}

.login-card input[type="submit"]:disabled,
.login-card button[type="submit"]:disabled {
    background: #94c4f0;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: #868e96;
}

.login-footer a {
    color: #2985e2;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-error {
    background: #fff5f5;
    border: 1px solid #ffc9c9;
    color: #c92a2a;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.login-success {
    background: #f3fbf5;
    border: 1px solid #b2e0c1;
    color: #1f7a3a;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* --- Responsive: stack on mobile --- */
@media (max-width: 800px) {
    body { flex-direction: column; }

    .login-brand {
        width: 100%;
        padding: 2.5rem 2rem;
    }

    .login-brand img {
        max-width: 150px;
        margin-bottom: 1.5rem;
    }

    .login-brand h2 { font-size: 1.375rem; }

    .login-form-panel {
        padding: 2rem 1.5rem;
    }
}
