* {
    box-sizing: border-box;
}

body.login-page {
    margin: 0;
    font-family: "Instrument Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #111827;
}

.login-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?q=80&w=2070') center/cover no-repeat;
}

.login-card {
    width: min(920px, 100%);
    min-height: 440px;
    background: rgba(255, 255, 255, 0.93);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
    padding: 40px;
}

.login-brand img {
    width: 210px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.login-form-panel h1 {
    margin: 0 0 20px;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    letter-spacing: 1px;
}

.error-message {
    margin-bottom: 14px;
    color: #b91c1c;
    font-weight: 600;
}

.auth-alert {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.92rem;
    font-weight: 600;
}

.login-form-panel form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form-panel input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form-panel input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.login-form-panel input.is-invalid {
    border-color: #dc2626;
    background-color: #fff7f7;
}

.login-form-panel input.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.login-form-panel input.is-valid {
    border-color: #16a34a;
}

.login-form-panel button {
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    background: #22d3ee;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.login-form-panel button:hover {
    background: #06b6d4;
    transform: translateY(-1px);
}

.switch-link {
    margin: 12px 0 0;
    text-align: center;
}

.switch-link a {
    color: #0e7490;
    font-weight: 600;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}

@media (max-width: 820px) {
    .login-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-brand {
        padding: 28px 24px 12px;
    }

    .login-brand img {
        width: 130px;
    }

    .login-form-panel {
        padding: 24px;
    }
}
