/* =====================================================
   Basis / Hintergrund
   ===================================================== */
body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('boxen/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #C9F1FF;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
    padding: 2rem 1rem;
}

/* =====================================================
   Dashboard-Box (identisch zu Startseite)
   ===================================================== */
.register-container {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 20, 0.88),
        rgba(40, 40, 40, 0.78)
    );
    border-radius: 16px;
    padding: 2.4rem 2rem;
    width: 100%;
    max-width: 440px;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(14px);
    animation: dashboardFadeUp 0.7s cubic-bezier(.4,0,.2,1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.register-container:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px rgba(255, 77, 77, 0.35),
        0 16px 38px rgba(0, 0, 0, 0.85);
}

/* Dashboard Animation */
@keyframes dashboardFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   Headline
   ===================================================== */
.register-container h2 {
    margin-bottom: 1.6rem;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: #FF4D4D;
    letter-spacing: 0.04em;
    text-shadow: 0 0 14px rgba(255, 77, 77, 0.35);
}

/* =====================================================
   Inputs
   ===================================================== */
.input-icon {
    position: relative;
    margin-bottom: 1.2rem;
}

.register-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.input-icon input {
    width: 100%;
    padding: 12px 0.6rem 12px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: #C9F1FF;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-icon input:focus {
    border-color: #FF4D4D;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.25);
    background: rgba(0, 0, 0, 0.55);
    outline: none;
}

.input-icon i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #C9F1FF;
    opacity: 0.8;
}

/* =====================================================
   Checkbox / AGB
   ===================================================== */
.terms-box {
    display: flex;
    gap: 0.7rem;
    margin: 1.2rem 0;
    font-size: 0.95rem;
}

.terms-box input {
    accent-color: #FF4D4D;
    margin-top: 4px;
}

.terms-box a {
    color: #FF4D4D;
    text-decoration: underline;
}

.terms-box a:hover {
    text-decoration: none;
}

/* =====================================================
   Button
   ===================================================== */
.register-container input[type="submit"] {
    width: 100%;
    padding: 13px;
    border-radius: 9px;
    border: none;
    cursor: pointer;

    background: linear-gradient(90deg, #FF4D4D, #00FF88);
    color: #111;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 255, 136, 0.25);
}

.register-container input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 255, 136, 0.4);
}

/* =====================================================
   Meldungen
   ===================================================== */
.error {
    background: rgba(255, 77, 77, 0.15);
    border-left: 4px solid #FF4D4D;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.success {
    background: rgba(0, 255, 136, 0.12);
    border-left: 4px solid #00FF88;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

/* =====================================================
   Mobile
   ===================================================== */
@media (max-width: 600px) {
    .register-container {
        padding: 1.6rem 1.2rem;
        max-width: 100%;
    }

    main {
        padding: 1.2rem 0.6rem;
        min-height: unset;
    }

    .terms-box {
        flex-direction: column;
        gap: 0.4rem;
    }
}
