* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, Arial, sans-serif;
    background: #000;
    color: #fff;
}

.hris-login {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(91, 33, 182, .35),
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(37, 99, 235, .25),
            transparent 40%
        ),
        #080b18;
}

.forgot-card {
    width: 100%;
    max-width: 460px;
    padding: 40px;
    border-radius: 24px;

    background:
        linear-gradient(
            rgba(30, 26, 46, .85),
            rgba(30, 26, 46, .85)
        ) padding-box,
        linear-gradient(
            -28.59deg,
            #aadcff,
            rgba(106, 55, 221, 0) 41%,
            #aadcff
        ) border-box;

    border: 2px solid transparent;

    display: flex;
    flex-direction: column;
    gap: 25px;

    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    animation: card-float 7s ease-in-out infinite;
}

.forgot-header h1 {
    font-size: 32px;
    margin: 0 0 12px;
    font-weight: 800;
}

.forgot-header p {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.forgot-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.forgot-card label {
    color: #edf0f6;
    font-size: 14px;
    font-weight: 500;
}

.forgot-card input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    outline: none;
    background: rgba(255,255,255,.04);
    color: #edf0f6;
    font-size: 14px;
}

.forgot-card input::placeholder {
    color: #9ca3af;
}

.forgot-card input:focus {
    border-color: #3b82f6;
    background: rgba(255,255,255,.07);
}

.forgot-card button,
.login-link {
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg,#76f5e8,#3b82f6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.forgot-card button:hover,
.login-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59,130,246,.3);
}

.back-login {
    text-align: center;
}

.back-login a {
    color: #3b82f6;
    font-size: 14px;
    text-decoration: none;
}

.back-login a:hover {
    text-decoration: underline;
}

.success-message {
    padding: 13px;
    border-radius: 8px;
    background: rgba(16,185,129,.10);
    border: 1px solid rgba(16,185,129,.3);
    color: #76f5e8;
    font-size: 13px;
    line-height: 1.5;
}

.error-message {
    padding: 13px;
    border-radius: 8px;
    background: rgba(239,68,68,.10);
    border: 1px solid rgba(239,68,68,.3);
    color: #ff6b6b;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes card-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .forgot-card {
        animation: none;
    }
}

@media(max-width:500px) {
    .forgot-card {
        padding: 30px;
    }

    .forgot-header h1 {
        font-size: 27px;
    }
}
