/* =========================
   GLOBAL STYLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    transition: background 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* =========================
   VERIFY PAGE BACKGROUND
========================= */
.verify-page {
    background: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)),
                url("../images/bpc bg.png") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px; /* for mobile spacing */
}

/* =========================
   HEADINGS
========================= */
h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    text-align: center;
}

h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 15px;
    text-align: center;
}

/* =========================
   CARD STYLES
========================= */
.login-card,
.forgot-card,
.reset-card,
.verify-card,
.form-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    padding: 45px 40px;
    border-radius: 18px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    width: 380px;
    text-align: center;
    margin: 0 auto;
}

/* =========================
   INPUT FIELDS
========================= */
.input-group {
    position: relative;
    margin: 14px auto;
    width: 95%;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #355a47;
}

input {
    width: 100%;
    height: 42px;
    padding: 10px 40px 10px 12px;
    border: 1.5px solid #bdeac5;
    border-radius: 10px;
    background: #f6fff8;
    color: #333;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #27ae60;
    background: #fff;
    box-shadow: 0 0 6px rgba(39, 174, 96, 0.3);
}

/* =========================
   PASSWORD EYE ICON
========================= */
.eye-icon {
    position: absolute;
    right: 14px;
    top: 65%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #5a7f68;
    transition: color 0.2s ease;
}

.eye-icon:hover {
    color: #27ae60;
}

/* =========================
   BUTTONS
========================= */
button,
.login-card button,
.forgot-card button,
.reset-card button,
.verify-card button,
.form-card button {
    width: 95%;
    padding: 12px;
    margin: 10px auto;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: block;
    letter-spacing: 0.5px;
}

/* =========================
   RESEND OTP BUTTON
========================= */
button[name="resend"],
.resend-btn {
    position: relative;
    background: #f9f9f9; /* cream-white */
    color: #27ae60;
    border: 1px solid #bdeac5;
    border-radius: 10px;
    padding: 12px 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Hover effect with gradient border */
button[name="resend"]:hover,
.resend-btn:hover {
    background: #f2f2f2;
    color: #27ae60;
}

/* Create gradient border using pseudo-element */
button[name="resend"]:hover::before,
.resend-btn:hover::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    z-index: -1;
}


/* =========================
   LINKS & OPTIONS
========================= */
.forgot {
    text-align: right;
    margin: 5px 0 15px;
}

.forgot a {
    color: #27ae60;
    text-decoration: none;
    font-size: 0.85rem;
}

.forgot a:hover {
    text-decoration: underline;
}

.options {
    width: 95%;
    margin: 12px auto;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

.options a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.options a:hover {
    color: #1f8f52;
    text-decoration: underline;
}

/* =========================
   ALERTS
========================= */
.alert {
    width: 95%;
    margin: 10px auto;
    padding: 10px;
    background: #fdecea;
    color: #d9534f;
    border-left: 4px solid #d9534f;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* =========================
   FOOTER
========================= */
footer {
    width: 95%;
    margin: 15px auto 0;
    text-align: center;
    font-size: 0.75rem;
    color: #777;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 500px) {
    body {
        padding: 0;
        height: 100vh;
    }

    .verify-page {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 15px;
    }

    .login-card,
    .forgot-card,
    .reset-card,
    .verify-card,
    .form-card {
        padding: 25px 15px;
        width: 100%;
        max-width: 340px;
    }

    h1 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .input-group input {
        height: 38px;
        font-size: 0.85rem;
    }

    button {
        padding: 10px;
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.7rem;
    }
}