﻿/*
// ================================================================================================
// Status       : Local Page Owner
// File name    : ForgotPassword.css
// Location     : wwwroot/css/ForgotPassword.css
// Descriptions : CSS for forgot password page.
// ================================================================================================
*/

/* Membuat seluruh halaman jadi flex container */
body {
    display: flex;
    justify-content: center; /* rata tengah horizontal */
    align-items: center; /* rata tengah vertical */
    height: 100vh; /* full tinggi layar */
    margin: 0;
    background: #f5f5f5; /* opsional, biar lembut */
}

.forgot-container {
    width: 350px;
    margin: 50px auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 35px rgba(0,0,0,1);
}

.forgot-container h2,
.forgot-container label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #333;
}

.forgot-container h2{
    padding-bottom:30px;
}
    .forgot-container label {
        text-align: left !important;
        display: block;
    }

    .forgot-container input {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

.btn-submit {
    width: 100%;
    padding: 10px;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .btn-submit:hover {
        background: #0056b3;
    }

    .btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        pointer-events: none;
    }

.back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-family: 'Poppins', sans-serif; /* font lembut */
    font-size: 13px;
    font-weight: 400; /* tidak terlalu tebal */
    letter-spacing: 0.3px; /* sedikit renggang, lebih smooth */
    color: #007bff;
    text-decoration: none;
    transition: all 0.25s ease; /* efek halus */
}

    .back-link:hover {
        color: #0056b3;
        text-decoration: underline;
        letter-spacing: 0.5px; /* sedikit melebar saat hover */
    }

#otp {
    letter-spacing: 8px;
    text-align: center;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
}

.otp-info {
    margin-top: -10px; /* mepet dengan input */
    margin-bottom: 30px; /* jarak jauh ke tombol */
    text-align: left; /* rata kiri */
    font-size: 14px;
    color: #444;
    font-family: 'Poppins', sans-serif;
}

.resend-info {
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #666;
    margin-top: -5px;
    margin-bottom: 20px;
    text-align: left;
}

.resend-wrapper {
    margin-bottom: 20px;
}

.btn-resend {
    background: none;
    border: none;
    color: #007bff;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
}

    .btn-resend:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.info-message {
    background: #e8f4ff;
    color: #0b5eb7;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-box {
    width: 45px;
    height: 50px;
    font-size: 22px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}

    .otp-box:focus {
        border-color: #007bff;
        outline: none;
        box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
    }

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        width: 100%;
        padding-right: 40px;
        line-height: 1.2; /* membantu posisi vertikal */
    }

.error-badge, .error-alert, .error-inline {
    text-align: left !important;
}

.toggle-password {
    position: absolute;
    padding-bottom:6px;
    right: 10px;
    top: 50%;
    transform: translateY(-60%);
    cursor: pointer;
    user-select: none;
    font-size: 18px; /* opsional: biar proporsional */
}

.forgot-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.error-badge {
    background: #ffe5e5;
    color: #d60000;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    border-left: 4px solid #d60000;
}

/* css untuk halamam resetpasswordsuccess */
/* ---------------------------------------*/
/* Tambah jarak antar elemen */
.forgot-container {
    text-align: center;
    padding-top: 35px;
    padding-bottom: 35px;
}

    .forgot-container h2 {
        font-size: 22px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .forgot-container p {
        font-size: 14px;
        color: #555;
        margin-top: 0;
        margin-bottom: 25px;
        font-family: 'Poppins', sans-serif;
        line-height: 1.5;
    }

    /* Hilangkan underline pada button link */
    .forgot-container a.btn-submit {
        text-decoration: none !important;
    }

        /* Tambah hover biar lebih elegan */
        .forgot-container a.btn-submit:hover {
            text-decoration: none;
            background: #0056b3;
        }


