:root {
    color-scheme: light;
    font-family: Arial, sans-serif;
    color: #163448;
    background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }

.login-layout {
    display: grid;
    grid-template-columns: minmax(360px, 44%) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #eef7f1;
    border-inline-end: 1px solid #d7e8dc;
}

.brand-panel-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 400px);
}

.zadna-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.afas-logo {
    display: block;
    width: 150px;
    height: auto;
    object-fit: contain;
}

.zadna-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    animation: zadna-enter .8s ease-out both;
}

.zadna-name {
    color: #15775f;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 61px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}

.zadna-name > span { color: #174a80; }

.zadna-stroke {
    display: block;
    width: 100%;
    height: 5px;
    margin-top: 7px;
    border-radius: 5px;
    background: #e4b735;
    transform-origin: left center;
    animation: zadna-draw .9s .3s ease-out both;
}

@keyframes zadna-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zadna-draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.brand-divider {
    width: 64px;
    height: 1px;
    margin: 26px 0 6px;
    background: #bed6c9;
}

.erasmus-logo {
    display: block;
    width: min(72%, 260px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.form-shell { width: min(100%, 410px); }

.form-shell h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    color: #163448;
}

.form-intro {
    margin: 10px 0 32px;
    color: #657781;
    font-size: 15px;
    line-height: 1.7;
}

.form-errors {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-inline-start: 3px solid #b43b39;
    background: #fff2f1;
    color: #8b2e2c;
    font-size: 14px;
}

.form-errors p { margin: 0; }
.form-errors p + p { margin-top: 6px; }
.form-field { margin-bottom: 20px; }

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.form-field input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cbd9d4;
    border-radius: 6px;
    outline: 0;
    background: #fff;
    color: #163448;
    font: inherit;
    direction: ltr;
    text-align: start;
}

.form-field input:focus {
    border-color: #218b71;
    box-shadow: 0 0 0 3px rgba(33, 139, 113, .12);
}

.submit-button {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 6px;
    background: #126f62;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.submit-button:hover { background: #0c5c52; }
.submit-button:focus-visible { outline: 3px solid #e5b533; outline-offset: 3px; }

@media (max-width: 760px) {
    .login-layout { grid-template-columns: 1fr; }
    .brand-panel {
        min-height: 192px;
        padding: 20px 24px;
        border-inline-end: 0;
        border-bottom: 1px solid #d7e8dc;
    }
    .brand-panel-inner { flex-direction: row; justify-content: space-around; gap: 8px; }
    .afas-logo { width: 62px; }
    .zadna-name { font-size: 35px; }
    .zadna-stroke { height: 3px; margin-top: 3px; }
    .brand-divider { width: 1px; height: 64px; margin: 0 4px; }
    .erasmus-logo { width: 118px; }
    .form-panel { align-items: flex-start; padding: 42px 24px 64px; }
    .form-shell h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
    .zadna-wordmark, .zadna-stroke { animation: none; }
}
