﻿* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f172a;
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59,130,246,0.35), transparent 32%), radial-gradient(circle at bottom right, rgba(139,92,246,0.30), transparent 30%), linear-gradient(135deg, #020617 0%, #0f172a 35%, #1e3a8a 70%, #020617 100%);
    z-index: 0;
}

.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
}

.bg-blur-1 {
    width: 260px;
    height: 260px;
    background: #38bdf8;
    top: 30px;
    left: 35px;
}

.bg-blur-2 {
    width: 330px;
    height: 330px;
    background: #8b5cf6;
    bottom: 40px;
    right: 45px;
}

.bg-blur-3 {
    width: 220px;
    height: 220px;
    background: #60a5fa;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
    z-index: 1;
}

.forgot-card {
    width: 100%;
    max-width: 480px;
    padding: 36px 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
}

.logo-box {
    width: 92px;
    height: 92px;
    margin: 0 auto 16px auto;
    border-radius: 24px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.25));
}

.forgot-title {
    text-align: center;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
    letter-spacing: .2px;
}

.forgot-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.form-group {
    margin-top: 8px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    pointer-events: none;
}

.forgot-input {
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.13);
    color: #ffffff;
    padding: 0 14px 0 44px;
    font-size: 15px;
    box-shadow: none;
}

    .forgot-input::placeholder {
        color: rgba(255,255,255,0.62);
    }

    .forgot-input:focus {
        background: rgba(255,255,255,0.18);
        color: #ffffff;
        border-color: rgba(147,197,253,0.85);
        box-shadow: 0 0 0 0.20rem rgba(96,165,250,0.20);
    }

.msg-label {
    display: block;
    margin-bottom: 16px;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(34,197,94,0.18);
    border-color: rgba(34,197,94,0.35);
    color: #dcfce7;
}

.alert-danger {
    background: rgba(239,68,68,0.18);
    border-color: rgba(239,68,68,0.35);
    color: #fee2e2;
}

.validator-summary {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: rgba(239,68,68,0.18);
    color: #fee2e2;
    border: 1px solid rgba(239,68,68,0.35);
    font-size: 14px;
}

    .validator-summary ul {
        margin-bottom: 0;
        padding-left: 20px;
    }

.field-error {
    display: block;
    margin-top: 7px;
    color: #fecaca !important;
    font-size: 13px;
}

.field-note {
    color: rgba(255,255,255,0.72);
    font-size: 12.5px;
    margin-top: 8px;
    line-height: 1.5;
}

.send-btn {
    height: 52px;
    border-radius: 16px !important;
    font-weight: 700;
    font-size: 15px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

    .send-btn:hover {
        background: linear-gradient(135deg, #1d4ed8, #3b82f6);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(37, 99, 235, 0.45);
    }

    .send-btn:disabled {
        opacity: .75;
        cursor: not-allowed;
        transform: none;
    }

.bottom-links {
    margin-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
}

    .bottom-links span {
        margin: 0 10px;
        color: rgba(255,255,255,0.45);
    }

    .bottom-links a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 700;
    }

        .bottom-links a:hover {
            text-decoration: underline;
        }

@media (max-width: 576px) {
    .forgot-wrapper {
        padding: 22px 12px;
        align-items: center;
    }

    .forgot-card {
        padding: 28px 18px;
        border-radius: 24px;
    }

    .logo-box {
        width: 82px;
        height: 82px;
        border-radius: 22px;
    }

    .login-logo {
        max-width: 62px;
        max-height: 62px;
    }

    .forgot-subtitle {
        font-size: 14px;
    }

    .forgot-input,
    .send-btn {
        height: 50px;
    }

    .bottom-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

        .bottom-links span {
            display: none;
        }
}

@media (max-width: 360px) {
    .forgot-card {
        padding: 24px 14px;
    }
}
