html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: #222831;
    color: #fff;
    font-family: 'Opensans', 'Helvetica Neue', Verdana, Arial, sans-serif;
}

body {
    min-height: 100vh;
    min-width: 100vw;
}

/* Zentrierter Wrapper */
.reset-wrapper {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 90px;
    box-sizing: border-box;
}

/* Formular-Card */
.reset-container {
    background: #313537ee;
    padding: 2.5rem 2.2rem 2rem 2.2rem;
    box-shadow: 0 8px 36px rgba(0,0,0,0.16);
    border-radius: 18px;
    max-width: 410px;
    width: 97vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    animation: login-pop 0.85s cubic-bezier(.42,0,.58,1.04);
    position: relative;
}

/* Animation */
@keyframes login-pop {
    0% { opacity: 0; transform: scale(.95) translateY(24px);}
    60% { opacity: .95; transform: scale(1.03) translateY(-7px);}
    100% { opacity: 1; transform: scale(1) translateY(0);}
}

.reset-container h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
    letter-spacing: .2px;
    font-size: 1.28rem;
}

.reset-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.reset-container label {
    color: #e6e6e6;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: .2rem;
    text-align: left;
}

.reset-container input[type="email"],
.reset-container input[type="text"],
.reset-container input[type="password"] {
    padding: 0.85rem;
    border: 2px solid #23262d;
    border-radius: 8px;
    background: #23262d;
    color: #fff;
    font-size: 1.07rem;
    transition: border 0.22s, box-shadow 0.16s;
    width: 100%;
    box-sizing: border-box;
}

.reset-container input[type="email"]:focus,
.reset-container input[type="text"]:focus,
.reset-container input[type="password"]:focus {
    border-color: #e60028;
    box-shadow: 0 0 0 2px rgba(230,0,40,0.13);
    outline: none;
}

/* Button */
.btn-reset {
    background-color: #e60028;
    color: #fff;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.09rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.1rem;
    width: 100%;
    box-shadow: 0 3px 15px rgba(230,0,40,0.13);
    transition: background 0.16s, box-shadow 0.15s, transform 0.13s;
    letter-spacing: 0.5px;
}
.btn-reset:hover, .btn-reset:focus {
    background: #b3001f;
    box-shadow: 0 8px 26px 0 rgba(230,0,40,0.18);
    transform: translateY(-1.5px) scale(1.016);
}

/* Back-Link */
.back-link {
    margin-top: 1.6rem;
    color: #e60028;
    text-decoration: none;
    font-weight: bold;
    align-self: center;
    font-size: 1.02rem;
    transition: color 0.16s;
    letter-spacing: .1px;
    display: inline-block;
}
.back-link:hover {
    text-decoration: underline;
    color: #b3001f;
}

/* Message Boxen für Feedback */
#resetMessage, #pwresetMessage,
.success-message, .error-message {
    margin-top: 18px;
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}
.success-message {
    background: #059862;
    color: #fff;
}
.error-message {
    background: #d4002a;
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .reset-container {
        max-width: 98vw;
        padding: 1.3rem 4vw 1.2rem 4vw;
        margin-top: 65px;
    }
    .reset-container h2 {
        font-size: 1rem;
    }
}
