/* Edslevhytten bookingsystem – authentication pages */

:root {
    --eh-auth-accent: #315b8c;
    --eh-auth-accent-hover: #294d76;
    --eh-auth-ink: #2d3035;
    --eh-auth-muted: #777d84;
    --eh-auth-border: #e2e5e9;
    --eh-auth-surface: #ffffff;
    --eh-auth-page: #f4f5f7;
    --eh-auth-success: #2f6d50;
    --eh-auth-success-bg: #edf6f1;
    --eh-auth-danger: #9a463d;
    --eh-auth-danger-bg: #fff1ee;
}

html,
body {
    min-height: 100%;
}

body.eh-auth-page {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 20% 5%, rgba(49, 91, 140, .06), transparent 28rem),
        var(--eh-auth-page);
    color: var(--eh-auth-ink);
    font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eh-auth {
    width: min(100%, 420px);
}

.eh-auth__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1.15rem;
    color: inherit;
    text-decoration: none;
}

.eh-auth__mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 11px;
    background: var(--eh-auth-accent);
    color: #fff;
    font-size: 1.15rem;
}

.eh-auth__brand-name {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.15;
}

.eh-auth__brand-subtitle {
    display: block;
    margin-top: .1rem;
    color: var(--eh-auth-muted);
    font-size: .82rem;
    line-height: 1.2;
}

.eh-auth__card {
    overflow: hidden;
    border: 1px solid var(--eh-auth-border);
    border-radius: 15px;
    background: var(--eh-auth-surface);
    box-shadow: 0 16px 40px rgba(30, 39, 50, .06);
}

.eh-auth__accent {
    height: 4px;
    background: var(--eh-auth-accent);
}

.eh-auth__body {
    padding: 1.7rem;
}

.eh-auth__title {
    margin: 0;
    color: var(--eh-auth-ink);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.eh-auth__intro {
    margin: .35rem 0 1.35rem;
    color: var(--eh-auth-muted);
    font-size: .94rem;
    line-height: 1.5;
}

.eh-auth__field {
    margin-bottom: 1rem;
}

.eh-auth__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .38rem;
}

.eh-auth__label {
    margin: 0;
    color: #4d5258;
    font-size: .86rem;
    font-weight: 650;
}

.eh-auth__forgot {
    color: var(--eh-auth-accent);
    font-size: .82rem;
    text-decoration: none;
}

.eh-auth__forgot:hover {
    text-decoration: underline;
}

.eh-auth__input-wrap {
    position: relative;
}

.eh-auth__input-icon {
    position: absolute;
    top: 50%;
    left: .78rem;
    z-index: 2;
    transform: translateY(-50%);
    color: #959ba2;
    pointer-events: none;
}

.eh-auth__input {
    width: 100%;
    min-height: 46px;
    padding: .7rem .8rem .7rem 2.45rem;
    border: 1px solid #d9dde2;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.eh-auth__input:focus {
    border-color: #91a9c4;
    box-shadow: 0 0 0 3px rgba(49, 91, 140, .10);
}

.eh-auth__help {
    margin: .38rem 0 0;
    color: var(--eh-auth-muted);
    font-size: .8rem;
    line-height: 1.4;
}

.eh-auth__button {
    width: 100%;
    min-height: 46px;
    margin-top: .15rem;
    border: 1px solid var(--eh-auth-accent);
    border-radius: 8px;
    background: var(--eh-auth-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.eh-auth__button:hover {
    border-color: var(--eh-auth-accent-hover);
    background: var(--eh-auth-accent-hover);
}

.eh-auth__alert {
    margin: 0 0 1rem;
    padding: .75rem .85rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .87rem;
    line-height: 1.45;
}

.eh-auth__alert--danger {
    border-color: #edc8c2;
    background: var(--eh-auth-danger-bg);
    color: var(--eh-auth-danger);
}

.eh-auth__alert--success {
    border-color: #c8ded2;
    background: var(--eh-auth-success-bg);
    color: var(--eh-auth-success);
}

.eh-auth__footer {
    margin: 1rem 0 0;
    color: var(--eh-auth-muted);
    font-size: .8rem;
    text-align: center;
}

.eh-auth__back {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    margin-top: 1rem;
    color: var(--eh-auth-accent);
    font-size: .88rem;
    text-decoration: none;
}

.eh-auth__back:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    body.eh-auth-page {
        padding: 1.25rem .8rem;
    }

    .eh-auth__body {
        padding: 1.35rem;
    }
}
