/* --- Global Reset & Basics --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none; /* Entfernt Standard-Browser-Rahmen */
}

body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    
    /* Zentrierung des Portals */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

/* --- Container Box --- */
.container {
    background-color: #2d2d2d;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    text-align: center;
    border: 1px solid #333;
}

/* --- Typografie --- */
h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

p {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 25px;
}

label {
    display: block;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Eingabefelder (Inputs) --- */
input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background-color: #181818;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: #7289da;
    box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.2);
    background-color: #111;
}

input[type="text"]::placeholder {
    color: #666;
}

/* --- Buttons --- */
button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    color: #ffffff;
}

button:active {
    transform: scale(0.98);
}

/* Standard Button Style */
.btn-primary {
    background-color: #43b581; /* Grün für Speichern */
}
.btn-primary:hover {
    background-color: #3ca374;
}

/* Discord Button Style */
.btn-discord {
    background-color: #5865F2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.btn-discord:hover {
    background-color: #4752c4;
}

/* --- Spezial-Elemente --- */
/* Die Box wo der Key drin steht */
.key-box {
    background-color: #111;
    border: 1px dashed #7289da;
    color: #7289da;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace; /* Code-Schriftart */
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    word-break: break-all;
    user-select: all; /* Markiert alles beim Anklicken */
    cursor: pointer;
}

.key-box:hover {
    background-color: #151520;
    border-style: solid;
}

/* --- Nachrichten (Erfolg/Fehler) --- */
.msg-error {
    background-color: rgba(240, 71, 71, 0.15);
    color: #f04747;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
    border-left: 3px solid #f04747;
    text-align: left;
}

.msg-success {
    /* Das hattest du wahrscheinlich schon, zur Sicherheit: */
    background-color: rgba(67, 181, 129, 0.15);
    color: #43b581;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
    border-left: 3px solid #43b581;
    text-align: left;
}

/* --- Links --- */
a {
    text-decoration: none;
}

.logout-link {
    display: inline-block;
    margin-top: 25px;
    color: #666;
    font-size: 13px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s;
}

.logout-link:hover {
    color: #aaa;
    border-bottom-color: #aaa;
}

/* Avatar Bild (Optional, falls du es nutzt) */
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #2d2d2d;
    box-shadow: 0 0 0 2px #7289da;
}