:root {
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #101827;
    color: #ffffff;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.login {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(24px, env(safe-area-inset-top)) 24px
             max(24px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
}

h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -1.5px;
}

.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.description {
    margin: 0 0 32px;
    color: #aab6c7;
    font-size: 14px;
}

label {
    display: block;
    margin: 0 0 9px;
    color: #aab6c7;
    font-size: 12px;
    font-weight: 600;
}

input {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0 0 22px;
    padding: 12px;
    border: 1px solid #344154;
    border-radius: 10px;
    background: #243247;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
}

input:focus {
    outline: 2px solid #70e5a3;
    outline-offset: 2px;
}

button {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: #70e5a3;
    color: #101827;
    font: inherit;
    font-size: 16px;
    font-weight: 750;
    cursor: pointer;
}

.error {
    padding: 14px;
    margin-bottom: 22px;
    border-radius: 10px;
    background: #442a35;
    color: #ffb7c3;
    font-size: 13px;
}

footer {
    color: #728096;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 360px) {
    .login {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Wonga! login page branding */
.brand-logo {
    display: block;
    width: 100px;
    height: auto;
    max-width: 100%;
}
