/* styles-mobile.css */
/* Gilt für Geräte mit max. Breite von 768px (Smartphones) */

body {
    font-family: 'Cinzel', serif;
    background-image: url('obsidian_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #000; /* Fallback */
    color: white;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Abdunkelung verstärken */
.mask {
    background: rgba(0, 0, 0, 0.5);
}

/* Logo-Container – Standardposition */
.logo-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.container {
    display: flex;
    overflow-x: hidden;
}

/* Logo-Größe und Abstand */
.logo {
    width: 70px;
    margin-right: 8px; /* Näher zum Text */
}

/* Textgrößen für OBSIDIAN CHAT.CH */
.logo-text {
    font-size: 38px;
    font-weight: 300;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.0;
    text-align: left;
}

.logo-text .chat {
    display: block;
    font-size: 28px;
}

.logo-text .ch {
    font-size: 19px;
    color: #b59e5b;
    text-decoration: underline;
}

/* Login-Container */
.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.0);
    border-radius: 15px;
    padding: 30px;
    width: 85%;
    max-width: 100%;
    z-index: 1;
}

form {
    margin-top: 60px;
}

.input-container {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-container i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    pointer-events: none;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px 12px 8px 40px;
    border-radius: 5px;
    border: 1px solid #555;
    font-size: 14px;
    background-color: #333;
    color: white;
    height: 30px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #b59e5b;
}

button {
    width: 100%;
    padding: 10px 0;
    background-color: #e60000;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    color: black;
    font-weight: bold;
    margin-top: 30px;
    height: 40px;
}

button:hover {
    background-color: #b30000;
}

/* Link-Anordnung unterhalb des Buttons */
.login-links-row {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.register-link {
    color: #b59e5b !important;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    text-decoration: underline;
    flex: 1 1 45%;
    text-align: left;
}

.forgot-password {
    color: white;
    font-size: 14px;
    text-align: right;
    flex: 1 1 45%;
    white-space: nowrap;
}

/* Footer Links */
/* Standard-Stil */
.footer-links {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: white;
    z-index: 100;
    white-space: nowrap;
    text-align: center;
}

.footer-links a {
    margin: 0 6px;
    color: white;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Mobile: zwei Zeilen, flex-gesteuert */
@media only screen and (max-width: 768px) {
    .footer-links {
        left: 0;
        transform: none;
        width: 100%;
        white-space: normal;
    }

    .footer-row {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        padding: 2px 10px;
    }

    .footer-links a {
        font-size: 11px;
        margin: 0;
        white-space: nowrap;
    }
}

/* Desktop: eine Zeile */
@media only screen and (min-width: 769px) {
    .footer-row {
        display: inline;
    }
}

/* Gerätespezifische Optimierungen */

@media only screen and (device-width: 320px) and (device-height: 568px) and (orientation: portrait) {
    .footer-links a {
        font-size: 14px;
    }
}

@media only screen and (max-width: 375px) and (max-height: 667px) and (orientation: portrait) {
    .footer-links a {
        font-size: 16px;
    }
}

.logo-text-container {
        position: absolute;
        top: 20%; /* Verschiebt das Logo und den Text nach oben */
        left: 50%;
        transform: translateX(-50%);
    }
}

@media only screen and (device-width: 414px) and (device-height: 896px) and (orientation: portrait) {
    .footer-links a {
        font-size: 15px;
    }
}

@media only screen and (device-width: 412px) and (device-height: 915px) and (orientation: portrait) {
    .footer-links a {
        font-size: 15px;
    }
}

@media only screen and (min-width: 390px) and (max-width: 500px) and (orientation: portrait) {
    .footer-links a {
        font-size: 15px;
    }
}
