/* === PASSWORD RESET STYLING (Themeable) === */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --reset-input-bg: #f1f5f9;
    --reset-icon-color: #64748b;
    --blob-opacity: 0.15;
}

[data-theme="dark"] {
    --reset-input-bg: #32363e;
    --reset-icon-color: #9ba0a6;
    --blob-opacity: 0.08;
}

/* Background Blobs */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    filter: blur(150px);
    opacity: var(--blob-opacity);
    transition: opacity 0.4s ease;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 { width: 700px; height: 700px; background: var(--accent-red); top: -200px; left: -200px; }
.blob-2 { width: 600px; height: 600px; background: var(--accent-teal); bottom: -100px; right: -100px; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Layout */
.reset-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 40px; /* Platz für den Cleanheader */
}

.reset-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 460px;
    padding: 50px 40px 40px;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .reset-card {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

/* Header */
.reset-header {
    text-align: center;
    margin-bottom: 35px;
}

.reset-header h2 {
    font-size: 1.7rem;
    color: var(--heading-color);
    margin: 0 0 10px 0;
    font-weight: 800;
    transition: color 0.4s ease;
}

.reset-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    transition: color 0.4s ease;
}

/* Form & Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--reset-icon-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    background: var(--reset-input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 16px 16px 16px 52px;
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: background-color 0.4s ease, border-color 0.2s ease, color 0.4s ease, box-shadow 0.2s ease;
}

.input-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.input-group input:focus {
    border-color: var(--accent-teal);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(0, 173, 181, 0.15);
}

.input-group input:focus + .input-icon,
.input-group input:not(:placeholder-shown) + .input-icon {
    color: var(--accent-teal);
}

/* Button */
.btn-reset {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-red) 0%, #c70024 100%);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    box-shadow: 0 6px 20px rgba(230, 0, 40, 0.3);
    transition: all 0.3s ease;
}

.btn-reset:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 0, 40, 0.5);
    filter: brightness(1.1);
}

.btn-reset:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    line-height: 1.4;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.alert-error {
    background: rgba(230, 0, 40, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(230, 0, 40, 0.3);
}

/* Back Link */
.back-link-container {
    text-align: center;
    margin-top: 30px;
}

.back-link {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: var(--accent-teal);
    transform: translateX(-3px);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 500px) {
    .reset-card { padding: 40px 25px 30px; }
    .reset-header h2 { font-size: 1.4rem; }
}