/* ================================================
   LOGIN / REGISTER CSS
================================================ */

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

body {
    font-family: 'Barlow', Arial, sans-serif;
    min-height: 100vh;
    background: url('/images/login-bg.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ---- Haupt-Box ---- */
.auth-box {
    width: 100%;
    max-width: 400px;
    background: rgba(10, 10, 20, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    padding: 40px 36px 36px;
    color: #e8e0d0;
}

/* ---- Logo ---- */
.auth-logo {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #c8a84b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ---- Titel ---- */
.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 28px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* ---- Fehlermeldung ---- */
.auth-error {
    background: rgba(180,30,30,0.5);
    border: 1px solid rgba(220,80,80,0.6);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 22px;
    font-size: 0.88rem;
    color: #ffbbbb;
    line-height: 1.7;
}

/* ---- Eingabefeld ---- */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f0e8c8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.auth-field input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.auth-field input:focus {
    border-color: #c8a84b;
    background: rgba(255,255,255,0.18);
}

.auth-field input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* ---- Hinweis-Texte ---- */
.auth-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    display: block;
    margin-top: 5px;
}

.auth-hint-inline {
    font-size: 0.75rem;
    color: #807880;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* ---- Passwort Toggle ---- */
.auth-pw-wrap {
    position: relative;
}

.auth-pw-wrap input {
    padding-right: 46px;
}

.auth-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #807880;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.auth-pw-toggle:hover { color: #e8e0d0; }

/* ---- Button ---- */
.auth-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: #c8a84b;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}

.auth-btn:hover {
    background: #d4b55a;
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

/* ---- Trennlinie ---- */
.auth-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 28px 0 20px;
}

/* ---- Wechsel-Link ---- */
.auth-switch {
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.auth-switch a {
    color: #c8a84b;
    text-decoration: none;
    font-weight: 600;
}

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

/* ================================================
   TOTP (login/totp.php) — gleiche Basis
================================================ */

.login-box {
    width: 100%;
    max-width: 400px;
    background: #1a1a2e;
    border-radius: 16px;
    border: 1px solid rgba(200,168,75,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    padding: 40px 36px 36px;
    color: #e8e0d0;
}

.login-box h2 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.login-box label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #c8a84b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    margin-top: 18px;
}

.login-box input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #12121f;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 0;
}

.login-box input:focus {
    border-color: #c8a84b;
}

.login-box button[type="submit"] {
    display: block;
    width: 100%;
    padding: 13px;
    background: #c8a84b;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.login-box button[type="submit"]:hover {
    background: #d4b55a;
}

.error {
    background: #2d1515;
    border: 1px solid #c0392b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    color: #ff7070;
    text-align: left;
}

/* ================================================
   RESPONSIVE — Mobile
================================================ */

@media (max-width: 480px) {

    body { padding: 12px; align-items: flex-start; padding-top: 30px; }

    .auth-box {
        padding: 28px 20px 24px;
        border-radius: 12px;
    }

    .auth-title { font-size: 1.25rem; margin-bottom: 20px; }

    /* iOS-Zoom verhindern */
    .auth-field input,
    .login-box input {
        font-size: 16px !important;
    }

    .auth-btn,
    .login-box button[type="submit"] {
        padding: 14px;
        font-size: 1rem;
    }

    .login-box {
        padding: 28px 20px 24px;
    }
}
