* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #000000, #ED1C24);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

h1 {
    margin: 0;
    font-size: 28px;
}

.subtitle {
    color: #555;
    margin: 4px 0 0 0;
}

.subtitle-small {
    color: #777;
    font-size: 12px;
    margin-bottom: 20px;
}

.error-box {
    display: none;
    background: #fdecea;
    color: #b00000;
    border: 1px solid #f5c2c0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    padding-right: 40px; /* Platz für den Toggle-Button */
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

input:focus {
    outline: none;
    border-color: #ED1C24;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.25);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password svg.open {
    fill: #ED1C24;
}

.toggle-password svg {
    width: 22px;
    height: 22px;
    fill: #666;
}

.toggle-password .eye-slash {
    stroke: #666;
    stroke-width: 2;
    display: none; /* standardmäßig unsichtbar */
}

/* Passwort sichtbar → Icon durchgestrichen */
.toggle-password svg.open .eye-slash {
    display: block;
    stroke: #ED1C24;
}

.form-options {
    margin: 12px 0 20px;
}

.remember-me {
    font-size: 14px;
    color: #333;
}

.login-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background: #ED1C24;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.login-button:hover {
    background: #c5161c;
}

.info-text {
    margin-top: 20px;
    font-size: 13px;
    color: #555;
}

.info-text p {
    margin: 6px 0;
}

.footer-links {
    margin-top: 16px;
    text-align: center;
}

.footer-links a {
    font-size: 13px;
    color: #ED1C24;
    text-decoration: none;
}

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

.logo {
    display: flex;
    justify-content: center;
}

.logo-square {
    width: 64px;
    height: 64px;
    background: linear-gradient(
            135deg,
            #000000 50%,
            #ED1C24 50%
    );
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.login-titles h1 {
    margin: 0;
    font-size: 28px;
}

.login-titles .subtitle {
    margin: 2px 0 0 0;
}

.login-titles .subtitle-small {
    margin: 0;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.password-help {
    text-align: right;
    margin-bottom: 16px;
}

.password-help a {
    font-size: 13px;
    color: #ED1C24;
    text-decoration: none;
}

.password-help a:hover {
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.secondary-button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ED1C24;
    background: #ffffff;
    color: #ED1C24;
    font-weight: 600;
    cursor: pointer;
}

.secondary-button:hover {
    background: rgba(237, 28, 36, 0.05);
}

