/* auth.css — Login & Register Seiten */

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

:root {
    --primary: #6c1aff;
    --secondary: #00ffcc;
    --bg: #050208;
    --card: #100c1e;
    --text: #ede8ff;
    --muted: #9b8ec4;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(108,26,255,.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0,255,204,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 30%, rgba(255,107,255,.06) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* Zurück-Link */
.back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--secondary);
    font-size: .85em;
    font-weight: 600;
    background: rgba(0,255,204,.08);
    border: 1px solid rgba(0,255,204,.2);
    padding: 8px 14px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all .2s;
    z-index: 10;
}
.back-link:hover { background: rgba(0,255,204,.15); }

/* Card */
.card {
    position: relative;
    z-index: 1;
    background: rgba(16,12,30,.95);
    border: 1px solid rgba(108,26,255,.4);
    border-radius: 24px;
    padding: 44px 38px;
    width: calc(100% - 32px);
    max-width: 420px;
    box-shadow:
        0 0 0 1px rgba(108,26,255,.15),
        0 20px 60px rgba(0,0,0,.6),
        0 0 80px rgba(108,26,255,.1);
    backdrop-filter: blur(20px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Logo */
.logo { text-align: center; margin-bottom: 4px; }
.logo-icon { font-size: 2.2em; display: block; margin-bottom: 6px; }
.logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5em;
    color: var(--secondary);
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0,255,204,.4);
}
.logo-sub {
    color: var(--muted);
    font-size: .83em;
    margin-top: 4px;
    margin-bottom: 28px;
}

/* Form */
.form-group { margin-bottom: 16px; }

label {
    display: block;
    font-size: .8em;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

input[type=text],
input[type=email],
input[type=password] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(5,2,8,.8);
    border: 1px solid rgba(108,26,255,.35);
    border-radius: 12px;
    color: var(--text);
    font-size: .93em;
    font-family: 'Inter', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,26,255,.2);
}

.show-pw {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    cursor: pointer;
    font-size: .82em;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
.show-pw input[type=checkbox] {
    width: auto;
    padding: 0;
    background: none;
    border: 1px solid rgba(108,26,255,.4);
    border-radius: 4px;
    cursor: pointer;
}

/* Button */
.btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), #9b3fff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: .95em;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    margin-top: 6px;
    transition: all .2s;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(108,26,255,.4);
}
.btn:active { transform: translateY(0); }

/* Fehler */
.msg {
    color: #ff3366;
    background: rgba(255,51,102,.1);
    border: 1px solid rgba(255,51,102,.3);
    padding: 11px 14px;
    border-radius: 10px;
    font-size: .87em;
    margin-bottom: 18px;
    text-align: center;
}
.msg.success {
    color: var(--secondary);
    background: rgba(0,255,204,.1);
    border-color: rgba(0,255,204,.3);
}

/* Trennlinie & Link */
.divider { border: none; border-top: 1px solid rgba(108,26,255,.2); margin: 22px 0; }

.link {
    text-align: center;
    font-size: .87em;
    color: var(--muted);
}
.link a { color: var(--secondary); text-decoration: none; font-weight: 600; }
.link a:hover { text-decoration: underline; }
