/* ==========================================================================
   LOGIN / REGISTER PAGE — self-contained, no main.css dependency
   ========================================================================== */

/* ── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:        #e10600;
    --red-dark:   #b30500;
    --red-glow:   rgba(225, 6, 0, .35);
    --bg:         #050710;
    --card-bg:    rgba(10, 12, 25, .82);
    --border:     rgba(255, 255, 255, .08);
    --input-bg:   rgba(255, 255, 255, .04);
    --input-border: rgba(255, 255, 255, .14);
    --text:       #f1f3f8;
    --muted:      #8b92a8;
    --radius:     14px;
    --font:       'Roboto Condensed', system-ui, sans-serif;
}

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

/* ── Animated background ───────────────────────────────────────────────── */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Base dark gradient */
.login-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(225,6,0,.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(30,40,100,.25) 0%, transparent 60%),
        linear-gradient(160deg, #070a1a 0%, #050710 50%, #0a0508 100%);
}

/* Floating glow orbs */
.login-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    left: -150px;
    top: -100px;
    background: radial-gradient(circle, rgba(225,6,0,.08) 0%, transparent 70%);
    animation: orb 12s ease-in-out infinite alternate;
}

/* Checkered stripe accent */
.login-bg-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #e10600 0px, #e10600 12px,
        transparent 12px, transparent 24px
    );
    opacity: .6;
}

@keyframes orb {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(80px, 60px) scale(1.3); }
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

/* Red top accent bar */
.login-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--red) 0%, #ff4d00 100%);
}

.login-card-inner {
    padding: 40px 36px 36px;
}

/* ── Logo ──────────────────────────────────────────────────────────────── */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.login-logo img {
    height: 42px;
    width: auto;
}

.login-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.login-logo-f1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.login-logo-f1 span {
    color: var(--red);
}

.login-logo-sub {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2px;
}

.login-title {
    text-align: center;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* ── Správy ────────────────────────────────────────────────────────────── */
.login-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-msg-error {
    background: rgba(225, 6, 0, .12);
    border: 1px solid rgba(225, 6, 0, .3);
    color: #ff8080;
}

.login-msg-success {
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .3);
    color: #6ee7b7;
}

/* ── Formulár ──────────────────────────────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap i.input-icon {
    position: absolute;
    left: 14px;
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
    transition: color .2s;
}

.input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}

.input-wrap input::placeholder { color: rgba(255,255,255,.2); }

.input-wrap input:focus {
    border-color: var(--red);
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 3px var(--red-glow);
}

.input-wrap input:focus + .input-icon,
.input-wrap:focus-within i.input-icon {
    color: var(--red);
}

/* Show/hide password toggle */
.btn-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color .2s;
    line-height: 1;
}

.btn-eye:hover { color: var(--text); }

/* ── Submit tlačidlo ───────────────────────────────────────────────────── */
.btn-login {
    margin-top: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--red) 0%, #c50500 100%);
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, filter .15s;
    box-shadow: 0 4px 20px rgba(225, 6, 0, .35);
}

.btn-login:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 28px rgba(225, 6, 0, .5);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
    filter: brightness(.95);
}

/* ── Footer linky ──────────────────────────────────────────────────────── */
.login-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
}

.login-links a:hover { color: var(--red); }

.login-links a strong { color: var(--text); font-weight: 600; }

/* ── Google Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;600;700&display=swap');

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 460px) {
    .login-card-inner { padding: 32px 24px 28px; }
}
