* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-image: url('/static/farm-planet.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.login-box,
.register-box {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border-radius: 18px;
    background: rgba(215, 207, 193, 0.53);
    border: 1px solid rgba(255, 249, 235, 0.65);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

h1 {
    margin: 0 0 10px;
    text-align: center;
    color: #234b2c;
}

.subtitle {
    text-align: center;
    margin-bottom: 28px;
    color: #455a48;
}

label {
    display: block;
    margin: 16px 0 6px;
    font-weight: bold;
    color: #263d2b;
}

input {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #a8b7a9;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

input:focus {
    outline: 2px solid #4e9b5e;
    outline-offset: 1px;
}

button {
    width: 100%;
    margin-top: 26px;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #327a43;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #266535;
}

.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.footer a {
    color: #245d34;
}

/* ==========================================
   FARMPLANET – Formular-Fehlermeldungen
   ========================================== */

.error-message {
    margin: 0 0 18px;
    padding: 12px 14px;

    border: 1px solid rgba(160, 45, 45, 0.45);
    border-radius: 8px;

    background: rgba(160, 45, 45, 0.12);
    color: #802525;

    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
}

/* Erfolgreiche Registrierung */

.success-message {
    margin: 0 0 18px;
    padding: 12px 14px;

    border: 1px solid rgba(35, 115, 60, 0.45);
    border-radius: 8px;

    background: rgba(35, 115, 60, 0.14);
    color: #205b32;

    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
}

.success-message a {
    color: #205b32;
    text-decoration: underline;
}


/* Versteckte Formularmeldungen nicht anzeigen */

[hidden] {
    display: none !important;
}