@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif; 
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('images/Background.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #333;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; 
    padding: 80px 20px 20px 20px; 
    min-height: 100vh;
}

.form-box {
    width: 90%; 
    max-width: 350px; 
    padding: 30px 25px; 
    background: rgba(255, 204, 153, 0.6); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    position: relative;
    margin: auto;
}

.form-box.active {
    display: block; 
}

h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 22px;   
}

input:focus {
    border-color: #f97a5d;
}

.forgot-link {
    display: block;
    text-align: right;
    margin-bottom: 20px;
    font-size: 13px;
}

.forgot-link a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link a:hover {
    color: #f97a5d;
    text-decoration: underline;
}

button {
    width: 100%;
    background: rgba(213, 128, 78, 0.8);
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    padding: 12px;
    transition: all 250ms;
    margin-top: 10px;
}

button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

p {
    font-size: 14.5px;
    text-align: center;
    margin-top: 15px;
}

p a {
    color: #f97a5d; 
    text-decoration: none;
    font-weight: 700;
}

p a:hover {
    text-decoration: underline;
}

.error-message {
    padding: 10px;
    background: #f8d7da;
    border-radius: 6px;
    font-size: 14px;
    color: #a42834;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.box {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

h1 { font-size: 50px; margin-bottom: 10px; }
span { color: #f97a5d; }
.box p { font-size: 22px; margin-bottom: 30px; }
.box button { width: 200px; }

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.form-logo {
    max-width: 110px;
    height: auto;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.input-group i:not(.toggle-password) {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%); 
    color: #f97a5d;
    z-index: 5;
    font-size: 18px;
    pointer-events: none;
    margin: 0;
}

.input-group input {
    width: 100%;
    height: 42px; 
    padding: 0 45px !important; 
    background: #eee;
    border-radius: 6px;
    border: 1px solid transparent;
    outline: none;
    font-size: 14.5px;
    color: #333;
    line-height: normal; 
    display: block; 
    box-sizing: border-box;
}

.main-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; 
    background-color: #c75d2c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000; 
}

.header-logo {
    height: 45px; 
    width: auto;
    display: block;
}

.header-text span {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%); 
    cursor: pointer;
    color: #888;
    z-index: 10;
    font-size: 18px;
}

.toggle-password:hover {
    color: #f97a5d;
}

select[name="role"] {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    background: #eee;
    border-radius: 6px;
    border: 1px solid transparent;
    outline: none;
    margin-bottom: 15px;
    cursor: pointer;
}

#otp-verification-form .input-group input[name="otp_input"] {
    padding: 0 !important;             
    text-align: center !important;      
    letter-spacing: 15px !important;    
    text-indent: 15px !important;       
    font-size: 24px !important;
    font-weight: bold !important;
}

.input-group input.otp-center {
    padding: 0 !important;
    text-align: center !important;
    letter-spacing: 5px;
    font-size: 20px;
    font-weight: bold;
}

@media screen and (max-width: 600px) {
    .container {
        margin-top: 80px;
        padding: 10px;
    }

    .form-box {
        padding: 20px;
    }

    h2 {
        font-size: 28px;
    }

    .header-text span {
        font-size: 16px;
    }

    .header-logo {
        height: 35px;
    }
}

.strength-meter {
    width: 100%;
    height: 6px; 
    background-color: #eee;
    margin-top: -10px; 
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}

#meter-bar, #set-meter-bar {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-in-out, background-color 0.5s;
}

#strength-text {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Prevent duplicate browser password eye icons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

input[type="password"]::-webkit-textfield-decoration-container {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

/* Keep custom eye icon above input */
.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    z-index: 20;
    font-size: 18px;
}