/* Forgot Password & Reset Password - ExamEase project styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: #fff;
}

/* Background - match index/dashboard */
.background {
    background: url(backgroun3.jpg) no-repeat center center/cover;
    height: 100vh;
    width: 100%;
    filter: blur(8px) brightness(0.35);
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Navbar - match index */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 10;
    padding: 18px 40px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: 0.2s ease;
}

.navbar a:hover {
    color: #4ed442;
}

.nav-logo {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.nav-logo i {
    font-size: 22px;
    color: #4ed442;
}

/* Main container - glass card like login form */
.container {
    width: 100%;
    max-width: 420px;
    margin: 80px 20px 40px;
    padding: 36px 32px;
    backdrop-filter: blur(18px);
    background: rgba(15, 20, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.5s ease-out;
}

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

.container h2 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.container > p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 24px;
}

/* Form groups */
.container form {
    width: 100%;
}

.form-group-password {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.form-group-password {
    position: relative;
}

.form-group-password .icon-wrap {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-group-password:focus-within .icon-wrap {
    color: #4ed442;
}

/* Inputs - match project input style */
.container input[type="email"],
.container input[type="text"],
.container input[type="password"] {
    width: 100%;
    padding: 14px 44px 14px 44px;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.container input::placeholder {
    color: rgba(255, 255, 255, 0.82);
}

.container input:focus {
    border-color: rgba(78, 212, 66, 0.5);
    box-shadow: 0 0 0 3px rgba(78, 212, 66, 0.15);
}


/* Toggle password visibility */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

/* Buttons - match project .btn gradient */
.container button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #174bbd 0%, #1e5cd4 50%, #4ed442 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(23, 75, 189, 0.4);
}

.container button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(78, 212, 66, 0.35);
}

.container button[type="submit"]:active {
    transform: translateY(0);
}

/* Messages */
#otpMessage,
#verifyMessage,
#resetMessage {
    font-size: 13px;
    text-align: center;
    margin-top: 14px;
    min-height: 20px;
    color: rgba(255, 255, 255, 0.8);
}

#otpMessage.error,
#verifyMessage.error,
#resetMessage.error {
    color: #ff6b6b;
}

#otpMessage.success,
#verifyMessage.success,
#resetMessage.success {
    color: #4ed442;
}

/* OTP section */
#otpSection {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#otpSection.hidden {
    display: none !important;
}

#otpSection p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
    text-align: center;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #4ed442;
}

.back-link i {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 600px) {
    .navbar {
        padding: 14px 20px;
    }

    .container {
        margin: 70px 16px 24px;
        padding: 28px 22px;
    }

    .container h2 {
        font-size: 22px;
    }

    .container input[type="email"],
    .container input[type="text"],
    .container input[type="password"] {
        padding: 12px 12px 12px 42px;
        font-size: 13px;
    }
}
