@import url("brand-fonts.css");

:root {
    font-family: "Carlito", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #26332f;
    background: #f6f8f7;
}

* { box-sizing: border-box; }

body.access-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 11% 8%, rgba(175, 199, 190, .46), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(255, 255, 255, .7), transparent 35%),
        linear-gradient(128deg, #2f5c50 0%, #426e60 34%, #a9c3b8 55%, #e6efeb 76%, #f6f8f7 100%);
}

/* Das Wappen wird bewusst angeschnitten: eine ruhige, moderne Wasserzeichen-Fläche
   statt eines zweiten, kleinen Logos. */
body.access-page::before {
    content: "";
    position: fixed;
    z-index: -1;
    top: max(14px, 3vh);
    left: 6vw;
    width: min(610px, 58vw);
    height: min(435px, 55vh);
    transform: none;
    background-image: url("../images/logo-recht.svg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 1250px auto;
    filter: brightness(0) invert(1);
    opacity: .18;
    pointer-events: none;
}

/* Zweite, dunkle Wappenebene für den hellen Teil des Verlaufs. */
body.access-page::after {
    content: "";
    position: fixed;
    z-index: -1;
    right: 3vw;
    bottom: max(12px, 3vh);
    width: min(560px, 54vw);
    height: min(405px, 50vh);
    background-image: url("../images/logo-recht.svg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 1160px auto;
    opacity: .065;
    pointer-events: none;
}

.access-card,
.access-wide {
    position: relative;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(216, 225, 222, .96);
    border-radius: 16px;
    box-shadow: 0 28px 76px rgba(30, 57, 49, .24);
    padding: 34px;
    width: min(460px, calc(100% - 28px));
}

.access-card--login { overflow: hidden; }
.access-wide { width: min(980px, calc(100% - 28px)); }

.access-brand {
    display: grid;
    justify-items: center;
    text-align: center;
    border-bottom: 1px solid #d8e1de;
    padding: 0 0 18px;
}

.access-brand img {
    width: 184px;
    height: 76px;
    object-fit: contain;
}

.access-brand span {
    color: #558373;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.access-card h1,
.access-wide h1 {
    margin: 22px 0 8px;
    color: #26332f;
    letter-spacing: -.025em;
}

.access-card p { color: #687772; line-height: 1.5; }
form { display: grid; gap: 13px; margin-top: 22px; }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 750; color: #476f62; }

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d8e1de;
    border-radius: 8px;
    background: #fff;
    color: #26332f;
    outline: 0;
}

input:focus,
select:focus { border-color: #558373; box-shadow: 0 0 0 3px rgba(85, 131, 115, .17); }

button {
    border: 0;
    border-radius: 8px;
    padding: 13px;
    background: #558373;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

button:hover { background: #42695c; }
button:active { transform: translateY(1px); }
button span { float: right; font-size: 18px; line-height: .75; }
.error { background: #fbeeee; color: #8e4040; border-left: 4px solid #b95656; padding: 11px; border-radius: 7px; }
.success { background: #eaf5ef; color: #2f6b53; border-left: 4px solid #3f8065; padding: 11px; border-radius: 7px; }
.user-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.user-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid #d8e1de; font-size: 12px; }
.user-row em { font-style: normal; color: #558373; }

@media (max-width: 700px) {
    body.access-page { padding: 18px; background: #e6efeb; overflow: auto; }
    body.access-page::before { width: 100vw; height: 330px; left: 0; background-size: 1000px auto; opacity: .08; }
    body.access-page::after { display: none; }
    .access-card, .access-wide { padding: 26px 22px; }
    .access-brand img { width: 170px; height: 68px; }
    .user-grid { grid-template-columns: 1fr; }
}
