/* Sign in / create account. Same glass card as admin.opticalmedia.co.uk/login. */
@font-face {
    font-family: 'Albert Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/albert-sans-latin.woff2') format('woff2');
}

:root {
    font-family: 'Albert Sans', system-ui, sans-serif;
    color: #dee2e8;
    background: #08162a;
    color-scheme: dark;
    font-size: 15px;
}

* {
    box-sizing: border-box;
    font-family: 'Albert Sans', system-ui, sans-serif;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 50%, #0a1d35 0%, #050f1c 100%) fixed;
}

button,
input,
a {
    font: inherit;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.auth-card {
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.auth-brand img {
    height: 64px;
    width: auto;
}

.auth-brand__title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #fff;
}

.auth-sub {
    color: #fff;
    margin: 14px 0 4px;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: center;
}

.auth-field {
    display: block;
    margin: 14px 0 0;
}

.auth-field span {
    display: block;
    font-size: 12px;
    color: #fff;
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.05);
}

.auth-field input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.auth-field input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 100px #061223 inset;
}

.auth-submit {
    width: 100%;
    margin-top: 18px;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    background: rgb(31, 64, 102);
    border: 0;
    color: #fff;
    box-shadow: 0 0 20px rgba(31, 64, 102, 0.4);
    transition: all 0.3s ease;
}

.auth-submit:hover {
    background: rgb(25, 51, 82);
    box-shadow: 0 0 30px rgba(31, 64, 102, 0.6);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.auth-flashes {
    margin-top: 12px;
}

.flash {
    font-size: 13px;
    margin: 8px 0 0;
    padding: 0;
    background: none;
}

.flash--error {
    color: #ff9d8f;
}

.flash--success {
    color: #86efac;
}

.auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.auth-or::before,
.auth-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.auth-google:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.auth-google svg {
    flex: none;
}

.auth-footer {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.auth-footer a {
    color: #6ab0dc;
    text-decoration: none;
    font-weight: 600;
}

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