/* Login, sign-up and password pages */
:root {
    --accent: #bd7558;
    --accent-dark: #a54a3c;
    --success: #3f8f46;
    --radius: 10px;
}

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

body {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #fff;
    background: #1d1a18 url("/assets/img/lake-sunset.jpg") center / cover no-repeat fixed;
}
@media (max-width: 700px) {
    body { padding-top: 32px; background-image: url("/assets/img/lake-sunset-small.jpg"); background-attachment: scroll; }
}

.box {
    width: 100%;
    max-width: 360px;
    padding: 36px 32px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}
.box__logo { display: block; width: 150px; height: auto; margin: 0 auto 20px; }
.box h1 { font-size: 26px; text-align: center; margin-bottom: 18px; }
.box__intro { font-size: 14px; text-align: center; color: #ddd; margin-bottom: 8px; line-height: 1.5; }
.box__link { margin-top: 18px; text-align: center; font-size: 14px; }
.box__link a { color: #fff; }

/* Sign in / Sign up switch (pure CSS, no JavaScript) */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs > label {
    padding: 8px 20px;
    font-size: 15px;
    border: 1px solid var(--accent);
    cursor: pointer;
    margin-bottom: 24px;
}
.tabs > label:first-of-type { border-radius: var(--radius) 0 0 var(--radius); }
.tabs > label:last-of-type  { border-radius: 0 var(--radius) var(--radius) 0; }
.tabs > input:checked + label { background: var(--accent); }
.tabs > input:focus-visible + label { outline: 2px solid #fff; outline-offset: 2px; }
.tabs > .msg { flex-basis: 100%; }
.tab-panel { display: none; flex-basis: 100%; }
#tab-login:checked  ~ .tab-panel--login,
#tab-signup:checked ~ .tab-panel--signup { display: block; }

/* Forms */
input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 16px; /* 16px stops iPhones zooming in on focus */
    color: #000;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(189, 117, 88, 0.35); }

.bttn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bttn:hover, .bttn:focus-visible { background: var(--accent-dark); }

/* Status messages */
.msg { margin: 0 0 14px; padding: 10px 12px; font-size: 14px; text-align: center; border-radius: 6px; line-height: 1.4; }
.msg--error   { background: var(--accent); }
.msg--success { background: var(--success); }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
