Minecraft-Modern-Theme/css/login-style.css aktualisiert

This commit is contained in:
2025-11-30 18:44:19 +00:00
parent 43f19e926a
commit 2f93e98220

View File

@@ -1,229 +1,276 @@
/* Minecraft Modern Theme Login Styles */ /* Minecraft Modern Theme Login & Registrierungs-Styles */
body.login { body.login, body.login-action-register {
background-color: #14151a; /* Fallback-Farbe */ background-color: #14151a; /* Fallback-Farbe */
background-size: cover; background-size: cover;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
font-family: 'Raleway', sans-serif; font-family: 'Raleway', sans-serif;
} }
/* Dunkler Overlay für bessere Lesbarkeit */ /* Dunkler Overlay für bessere Lesbarkeit */
body.login::before { body.login::before, body.login-action-register::before {
content: ''; content: '';
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgba(20, 21, 26, 0.8); background: rgba(20, 21, 26, 0.8);
z-index: -1; z-index: -1;
} }
/* Logo zentrieren */ /* Logo zentrieren */
.login h1 { body.login h1, body.login-action-register h1 {
text-align: center; text-align: center;
margin-bottom: 50px; /* ANGEPASST: Mehr Abstand für das größere Logo */ margin-bottom: 50px;
} }
.login h1 a { body.login h1 a, body.login-action-register h1 a {
width: auto; width: auto;
height: 160px; /* ANGEPASST: Logo ist jetzt doppelt so groß */ height: 160px;
background-size: contain; background-size: contain;
} }
/* Haupt-Container, der alles umschließt */ /* Haupt-Container, der alles umschließt */
#login { body.login #login, body.login-action-register #login {
width: 80%; width: 80%;
max-width: 800px; max-width: 800px;
margin: 0 auto; margin: 0 auto;
padding: 0; padding: 0;
background: none; background: none;
box-shadow: none; box-shadow: none;
} }
/* NEU: Der Wrapper, der vom Skript erstellt wird. Dies ist unsere "Tabelle". */ /* Der Wrapper, der vom Skript erstellt wird. */
#login-content-wrapper { body.login #login-content-wrapper, body.login-action-register #login-content-wrapper {
display: flex; display: flex;
align-items: stretch; /* Sorgt dafür, dass beide Spalten die gleiche Höhe haben */ align-items: stretch;
background-color: #252830; background-color: #252830;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
overflow: hidden; /* Sorgt für abgerundete Ecken an den Kind-Elementen */ overflow: hidden;
} }
/* Linke Spalte: Minecraft Avatar Slider (27.8%) */ /* Linke Spalte: Minecraft Avatar Slider (27.8%) */
#minecraft-avatar-slider { body.login #minecraft-avatar-slider, body.login-action-register #minecraft-avatar-slider {
flex: 0 0 27.8%; /* Feste Breite, wächst nicht, schrumpft nicht */ flex: 0 0 27.8%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 20px; padding: 20px;
padding-top: 50px; /* ANGEPASST: Erzeugt den Raum, in den die Avatare verschoben werden */ padding-top: 50px;
background-color: #1a1c23; /* Leicht anderer Hintergrund für Kontrast */ background-color: #1a1c23;
height: auto; /* Höhe anpassen, damit sie nicht fest ist */ height: auto;
position: relative; /* Wichtig für den Slider */ position: relative;
overflow: hidden; /* Verhindert, dass Bilder überstehen */ overflow: hidden;
} }
#minecraft-avatar-slider .avatar-slide { body.login #minecraft-avatar-slider .avatar-slide, body.login-action-register #minecraft-avatar-slider .avatar-slide {
width: 100%; width: 100%;
height: auto; /* Seitenverhältnis beibehalten */ height: auto;
max-height: 400px; /* Maximale Höhe des Avatars, damit er nicht zu groß wird */ max-height: 400px;
border-radius: 4px; border-radius: 4px;
position: absolute;
/* Slider-spezifische Stile */ top: 25px;
position: absolute; left: 0;
top: 25px; /* KORRIGIERT: Verschiebt alle Avatare um 50px nach unten */ opacity: 0;
left: 0; transition: opacity 0.7s ease-in-out;
opacity: 0; }
transition: opacity 0.7s ease-in-out;
} body.login #minecraft-avatar-slider .avatar-slide-active, body.login-action-register #minecraft-avatar-slider .avatar-slide-active {
opacity: 1;
#minecraft-avatar-slider .avatar-slide-active { }
opacity: 1;
} /* Rechte Spalte: Login/Registrierungs-Formular (72.2%) */
body.login #loginform, body.login-action-register #registerform, body.login #loginform, body.login-action-register #registerform {
/* Rechte Spalte: Login-Formular (72.2%) */ flex: 1;
#loginform { padding: 40px;
flex: 1; /* Nimmt den restlichen verfügbaren Platz ein */ background: none;
padding: 40px; border: none;
background: none; box-shadow: none;
border: none; }
box-shadow: none;
} /* Formular-Felder */
body.login #loginform p, body.login-action-register #registerform p,
/* Formular-Felder */ body.login #loginform label, body.login-action-register #registerform label {
#loginform p { margin-bottom: 20px;
margin-bottom: 20px; color: #e4e4e4;
} font-weight: 600;
display: block;
#loginform label { margin-bottom: 8px;
color: #e4e4e4; }
font-weight: 600;
display: block; body.login #loginform input[type="text"], body.login #loginform input[type="password"], body.login-action-register #registerform input[type="text"], body.login-action-register #registerform input[type="password"], body.login #loginform input[type="email"], body.login-action-register #registerform input[type="email"] {
margin-bottom: 8px; width: 100%;
} padding: 14px;
background-color: #1e2029;
#loginform input[type="text"], border: 1px solid #333;
#loginform input[type="password"] { border-radius: 4px;
width: 100%; color: #e4e4e4;
padding: 14px; font-family: 'Raleway', sans-serif;
background-color: #1e2029; font-size: 16px;
border: 1px solid #333; transition: border-color 0.3s, box-shadow 0.3s;
border-radius: 4px; }
color: #e4e4e4;
font-family: 'Raleway', sans-serif; body.login #loginform input[type="text"]:focus, body.login #loginform input[type="password"]:focus, body.login-action-register #registerform input[type="text"]:focus, body.login-action-register #registerform input[type="password"]:focus, body.login-action-register #registerform input[type="email"]:focus {
font-size: 16px; border-color: #00d4ff;
transition: border-color 0.3s, box-shadow 0.3s; box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
} outline: none;
}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus { /* "Angemeldet bleiben" Checkbox (nur Login) */
border-color: #00d4ff; body.login .forgetmenot label, body.login .forgetmenot input[type="checkbox"] {
box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2); font-weight: 400;
outline: none; font-size: 14px;
} color: #a0a0a0;
display: flex;
/* Container für "Angemeldet bleiben" und "Passwort vergessen" */ align-items: center;
.login-options-container { }
display: flex; body.login .forgetmenot input[type="checkbox"] {
justify-content: space-between; margin-right: 8px;
align-items: center; }
margin-bottom: 25px;
} /* NEU: Stile für die Registrierungsseite */
.auth-title {
.login-options-container .forgetmenot, text-align: center;
.login-options-container #nav { color: #e4e4e4;
margin: 0; /* Entfernt Standard-Abstände */ margin-bottom: 10px;
} }
.auth-subtitle {
.forgetmenot label { text-align: center;
font-weight: 400; color: #a0a0a0;
font-size: 14px; margin-bottom: 40px;
color: #a0a0a0; }
display: flex; .login-form-link {
align-items: center; text-align: center;
} margin-top: 30px;
.forgetmenot input[type="checkbox"] { }
margin-right: 8px; .login-form-link p {
} margin-bottom: 0;
}
.login-options-container #nav a { .login-form-link a {
color: #a0a0a0; color: #00d4ff;
text-decoration: none; text-decoration: none;
font-weight: 400; font-weight: 600;
font-size: 14px; }
transition: color 0.2s; .login-form-link a:hover {
} color: #fff;
.login-options-container #nav a:hover { }
color: #00d4ff; .logged-in-message {
} text-align: center;
padding: 40px;
/* Submit-Button */ background-color: #252830;
#loginform .submit input[type="submit"] { border-radius: 8px;
width: 100%; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
padding: 14px; }
background-color: #00d4ff; .logged-in-message h2 {
border: none; margin-top: 0;
border-radius: 4px; color: #00d4ff;
color: #fff; }
font-family: 'Raleway', sans-serif; .logged-in-message .button {
font-weight: 600; display: inline-block;
font-size: 16px; margin: 10px;
cursor: pointer; padding: 12px 25px;
transition: background-color 0.3s; background-color: #00d4ff;
} color: #fff;
#loginform .submit input[type="submit"]:hover { text-decoration: none;
background-color: #00a8cc; border-radius: 4px;
} font-weight: 600;
transition: background-color 0.3s;
/* Anpassungen für kleinere Bildschirme */ }
@media screen and (max-width: 768px) { .logged-in-message .button:hover {
#login-content-wrapper { background-color: #00a8cc;
flex-direction: column; /* Spalten untereinander */ }
}
#minecraft-avatar-slider { /* Container für "Angemeldet bleiben" und "Passwort vergessen" (nur Login) */
flex: none; /* Setzt Flexbox zurück */ body.login .login-options-container {
width: 100%; display: flex;
padding: 30px; /* Padding wird zurückgesetzt */ justify-content: space-between;
padding-top: 30px; /* Padding oben auch auf mobilen Geräten anpassen */ align-items: center;
} margin-bottom: 25px;
#minecraft-avatar-slider .avatar-slide { }
max-height: 300px; /* Auf mobilen Geräten etwas kleiner */
max-width: 200px; /* Und auch schmaler */ body.login .login-options-container .forgetmenot,
top: 30px; /* WICHTIG: Auch hier den top-Wert anpassen! */ body.login .login-options-container #nav {
} margin: 0;
} }
/* Fehlermeldungen und Hinweise */ body.login .login-options-container #nav a {
.login .message, .login #login_error { color: #a0a0a0;
background-color: rgba(0, 212, 255, 0.1); text-decoration: none;
border-left: 4px solid #00d4ff; font-weight: 400;
padding: 15px; font-size: 14px;
margin-bottom: 20px; transition: color 0.2s;
border-radius: 0 4px 4px 0; }
color: #e4e4e4; body.login .login-options-container #nav a:hover {
} color: #00d4ff;
}
/* =========================================================================
=== NEU: STIL FÜR DIE LINKS UNTER DEM ANMELDE-BUTTON ==================== /* Submit-Button (gilt für Login & Registrierung) */
========================================================================= */ body.login #loginform .submit input[type="submit"], body.login-action-register #registerform .submit input[type="submit"] {
width: 100%;
.post-login-links { padding: 14px;
display: flex; background-color: #00d4ff;
justify-content: space-between; /* Verteilt die Links auf die ganze Breite */ border: none;
align-items: center; border-radius: 4px;
margin-top: 15px; color: #fff;
padding-top: 15px; font-family: 'Raleway', sans-serif;
border-top: 1px solid #333; /* Trennlinie über den Links */ font-weight: 600;
} font-size: 16px;
cursor: pointer;
.post-login-links a { transition: background-color 0.3s;
color: #a0a0a0; }
text-decoration: none; body.login #loginform .submit input[type="submit"]:hover, body.login-action-register #registerform .submit input[type="submit"]:hover {
font-size: 14px; background-color: #00a8cc;
transition: color 0.2s ease; }
}
/* Anpassungen für kleinere Bildschirme */
.post-login-links a:hover { @media screen and (max-width: 768px) {
color: #00d4ff; body.login #login-content-wrapper, body.login-action-register #login-content-wrapper {
flex-direction: column;
}
body.login #minecraft-avatar-slider, body.login-action-register #minecraft-avatar-slider {
flex: none;
width: 100%;
padding: 30px;
padding-top: 30px;
}
body.login #minecraft-avatar-slider .avatar-slide, body.login-action-register #minecraft-avatar-slider .avatar-slide {
max-height: 300px;
max-width: 200px;
top: 30px;
}
}
/* Fehlermeldungen und Hinweise */
body.login .message, body.login #login_error, body.login-action-register .message, body.login-action-register #login_error {
background-color: rgba(0, 212, 255, 0.1);
border-left: 4px solid #00d4ff;
padding: 15px;
margin-bottom: 20px;
border-radius: 0 4px 4px 0;
color: #e4e4e4;
}
/* =========================================================================
=== STIL FÜR DIE LINKS UNTER DEM ANMELDE-BUTTON ====================
========================================================================= */
body.login .post-login-links, body.login-action-register .post-login-links {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #333;
}
body.login .post-login-links a, body.login-action-register .post-login-links a {
color: #a0a0a0;
text-decoration: none;
font-size: 14px;
transition: color 0.2s ease;
}
body.login .post-login-links a:hover, body.login-action-register .post-login-links a:hover {
color: #00d4ff;
} }