/* Login page. Colours and fonts follow the public site (landing_style.css). */
@import url('https://fonts.googleapis.com/css?family=Cabin:400,500,600,700|Roboto:300,400,500,700,900');

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

html, body { height: 100%; margin: 0; }

body {
    font-family: 'Cabin', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    color: #1c1c1c;
    background: #0c0c0c;
}

.login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr);
}

/* Left: brand panel over the hero photo */
.login-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 56px 64px;
    color: #fff;
    background: #0c0c0c url(../img/main.webp) center / cover no-repeat;
}

.login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, rgba(12, 12, 12, .45), rgba(12, 12, 12, .85));
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    color: #fff;
    text-decoration: none;
    font: 700 24px/1 'Roboto', sans-serif;
    letter-spacing: 1px;
}

.login-logo img { width: 32px; height: 32px; }

.login-brand-text { max-width: 560px; }

.login-brand-motto {
    position: relative;
    margin: 0 0 28px;
    padding-bottom: 28px;
    font: 900 clamp(26px, 3.1vw, 44px)/1.2 'Roboto', sans-serif;
    letter-spacing: 1px;
}

.login-brand-motto span { color: #FFC206; }

.login-brand-motto::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    height: 2px;
    background: #FFC206;
}

.login-brand-name { margin: 0 0 8px; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; }

.login-brand-tagline { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .8); }

/* Right: the form */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #fff;
}

.login-box { width: 100%; max-width: 360px; }

.login-box h1 {
    margin: 0 0 28px;
    font: 900 28px/1.2 'Roboto', sans-serif;
    letter-spacing: .5px;
}

.login-field { margin-bottom: 18px; }

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b6b6b;
}

.login-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.login-field input:focus { border-color: #FFC206; box-shadow: 0 0 0 3px rgba(255, 194, 6, .25); }

.login-field input.input-validation-error { border-color: #d9534f; }

.login-password { position: relative; }

.login-password input { padding-right: 46px; }

.login-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #8a8a8a;
    background: none;
    border: 0;
    cursor: pointer;
}

.login-toggle:hover, .login-toggle:focus-visible { color: #1c1c1c; }

.login-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* The strike-through shows while the password is hidden. */
.login-toggle[aria-pressed="true"] .login-toggle-off { display: none; }

.login-field-error { display: block; margin-top: 5px; font-size: 13px; color: #c9302c; }

.login-field-error:empty { display: none; }

.login-alert {
    margin-bottom: 18px;
    padding: 11px 14px;
    font-size: 14px;
    color: #a12622;
    background: #fdecea;
    border-left: 4px solid #d9534f;
}

.login-alert ul { margin: 0; padding: 0; list-style: none; }

.login-alert.validation-summary-valid { display: none; }

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #4a4a4a;
    cursor: pointer;
}

.login-remember input { width: 16px; height: 16px; margin: 0; accent-color: #FFC206; }

.login-submit {
    width: 100%;
    height: 48px;
    font: 700 14px/1 'Cabin', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0c0c0c;
    background: #FFC206;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .15s ease;
}

.login-submit:hover, .login-submit:focus-visible { background: #e6ae00; }

.login-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #ececec;
}

.login-back { font-size: 14px; color: #6b6b6b; text-decoration: none; }

.login-back:hover { color: #1c1c1c; }

.login-lang { display: flex; gap: 6px; margin: 0; }

.login-lang button {
    padding: 2px;
    line-height: 0;
    background: none;
    border: 1px solid transparent;
    opacity: .55;
    cursor: pointer;
}

.login-lang button.active, .login-lang button:hover { opacity: 1; border-color: #FFC206; }

/* Phones and narrow tablets: the photo becomes a short band above the form. */
@media (max-width: 860px) {
    .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }

    .login-brand { padding: 22px 24px; flex-direction: row; align-items: center; justify-content: flex-start; }

    .login-brand-text { display: none; }

    .login-panel { align-items: flex-start; padding: 36px 24px 40px; }

    .login-box { max-width: 420px; }
}
