:root {
    --background-color: #ffffff;
    --box-background-color: #484848;
    --main-color: #e0c066;
    --success-color: #28a745;
    --error-color: #dc3545;
    --text-color: #ffffff;
}

* {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    min-height: 100vh;
    background: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.box {
    width: 100%;
    max-width: 400px;
    background: var(--box-background-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(224, 192, 102, 0.5);
    border: 2px solid var(--main-color);
}

.tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--main-color);
}

.tab {
    width: 50%;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-weight: bold;
    color: var(--main-color);
    background: var(--background-color);
    border-radius: 10px 10px 0 0;
    transition: background 0.3s, color 0.3s;
}

.tab.active {
    background: var(--main-color);
    color: var(--background-color);
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

form input {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--main-color);
    border-radius: 6px;
    background: var(--box-background-color);
    color: var(--text-color);
}

form input::placeholder {
    color: #bbbbbb;
}

form button {
    width: 100%;
    padding: 10px;
    background: var(--main-color);
    color: var(--background-color);
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #d4b650;
}

/* Nachrichten */
.message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    animation: slideFadeIn 0.6s ease forwards;
}

.success {
    background-color: var(--success-color);
}

.error {
    background-color: var(--error-color);
}

@keyframes slideFadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.message.hide {
    animation: fadeOut 1.5s forwards;
    animation-delay: 2.5s;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Lade-Button Effekt */
button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

button.loading::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 15px;
    height: 15px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .box {
        padding: 15px;
    }
    form input, form button {
        font-size: 0.9rem;
    }
}