/* ================================
   UMOJAMBELE AUTHENTICATION
================================ */

:root {
    --umoja-green: #2F896F;
    --umoja-green-dark: #26765F;
    --input-border: #0F9B83;
    --text-color: #333333;
    --muted-color: #888888;
}
/* =========================================================
   AUTHENTICATION PAGE
========================================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 60px;
    background: #f5f7f6;
    box-sizing: border-box;
}
/* =========================================================
   MAIN CONTAINER
========================================================= */
.auth-container {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-sizing: border-box;
}
.auth-header {
    padding: 15px 30px;
    border-bottom: 1px solid #eeeeee;
    text-align: center;
}
.auth-header h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: #465b5b;
}
/* =========================================================
   LOGIN / REGISTER TABS
========================================================= */
.auth-tabs {
    display: flex;
    margin: 20px 40px 0;
    padding: 6px;
    background: #cdebe6;
    border-radius: 40px;
}
.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 10px;
    border-radius: 35px;
    color: #2f896f;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
	text-align:center;
	margin:2px;
}
.auth-tab.active {
    background: #2f896f;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(47, 137, 111, .15);
}
.auth-tab:hover:not(.active) {
    background: rgba(255,255,255,.45);
}
/* =========================================================
   FORM CONTENT
========================================================= */
.auth-content {
    padding: 30px 40px 40px;
}
/* =========================================================
   REGISTRATION TITLE
========================================================= */
.auth-form .login-title {
    margin: 0;
    text-align: center;
    color: #2f896f;
    font-size: 32px;
    font-weight: 700;
}
.auth-form .login-subtitle {
    margin: 8px 0 28px;
    text-align: center;
    color: #8a8a8a;
    font-size: 18px;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 20px 12px 40px;
    }
    .auth-container {
        max-width: 100%;
        border-radius: 14px;
    }
    .auth-tabs {
        margin-left: 20px;
        margin-right: 20px;
    }
    .auth-content {
        padding: 30px 20px 35px;
    }
    .auth-form .login-title {
        font-size: 32px;
    }
    .otp-container {
        gap: 7px;
    }
    .otp-input {
        width: 48px !important;
        height: 55px !important;
    }
}
@media (max-width: 420px) {
    .auth-page {
        padding: 10px 8px 30px;
    }
    .auth-content {
        padding: 25px 15px 30px;
    }
    .auth-tabs {
        margin-left: 12px;
        margin-right: 12px;
    }
    .auth-tab {
        font-size: 15px;
        padding: 12px 10px;
    }
    .auth-form .login-title {
        font-size: 29px;
    }
    .auth-form .login-subtitle {
        font-size: 16px;
    }
    .otp-container {
        gap: 5px;
    }
    .otp-input {
        width: 43px !important;
        height: 52px !important;
    }
}

/* Form groups */
.auth-form .form-group {
    position: relative;
    width: 100%;
    height: 52px;
    margin-bottom: 10px;
}
/* Inputs */
.form-group{
    position:relative;
    margin-bottom:15px;
}
.form-group input, .form-group select{
    width:100%;
    padding:12px 12px 12px 42px;
    border-radius:12px;
    border:1px solid #12846d;
    background:#fff;
    outline:none;
}
.form-group input,
.form-group select {
    width:100%;
    padding:12px 12px 12px 42px;
    border-radius:12px;
    border:1px solid #12846d;
    background:#fff;
    outline:none;
}

/* Main box */
.select2-container--default .select2-selection--single {
    height: 44px;
    padding: 6px 12px 6px 42px!important;
    border-radius: 10px;
    border: 1px solid #12846d;
    background: #fff;
    display: flex;
    align-items: center;
}
/* Button */
.auth-btn{
    width:100%;
    padding:13px;
    border:none;
    border-radius:30px;
    background:#2f8367;
    color:white;
    font-weight:600;
    cursor:pointer;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    transition:0.3s;
}
.auth-btn:hover{
    background:#1c4e3d;
}
/* Feather size fix */
.feather{
    width:18px;
    height:18px;
}
.form-group{
position:relative;
}

.form-group input{
width:100%;
padding:12px 45px 12px 42px;
border-radius:12px;
border:1px solid #12846d;
background:#fff;
outline:none;
}

.input-icon{
position:absolute;
left:12px;
top:50%;
transform:translateY(-50%);
color:#888;
width:18px;
height:18px;
}

.toggle-password{
position:absolute;
right:12px;
top:50%;
transform:translateY(-50%);
cursor:pointer;
color:#888;
width:18px;
height:18px;
}.toggle-password:hover{
color:#4B3B2F;
}.password-strength{
width:100%;
height:6px;
background:#eee;
border-radius:6px;
margin-top:6px;
overflow:hidden;
}

.strength-bar{
height:100%;
width:0%;
transition:0.3s;
}
.password-rules p{
display:flex;
align-items:center;
gap:8px;
font-size:13px;
color:#999;
margin:3px 0;
}

.rule-icon svg{
width:16px;
height:16px;
stroke:#e74c3c;
}

.valid .rule-icon svg{
stroke:#27ae60;
}

.password-rules .valid{
color:#27ae60;
}

.password-rules .invalid{
color:#e74c3c;
}

.strength-text{
font-size:13px;
margin-top:4px;
}

.select-arrow {
    position: absolute;
    right: 18px;
    top: 21px;
    color: #777;
    pointer-events: none;
}

/* Password */

.toggle-password {
    position: absolute;
    right: 18px;
    top: 20px;
    cursor: pointer;
    color: #888;
}

/* ==================================
   EMAIL VERIFICATION
================================== */
.verification-box {
    text-align: center;
    padding: 10px 0 10px;
}
.verification-icon {
    width: 60px;
    height: 60px;
    margin: 5px auto 5px;
    border-radius: 50%;
    background: rgba(47,137,111,.10);
    display: flex;
    align-items: center;
    justify-content: center;
}
.verification-icon svg {
    width: 30px;
    height: 30px;
    color: var(--umoja-green);
}
.verification-email {
    font-size: 15px;
    font-weight: 600;
    color: var(--umoja-green);
    margin-top: -5px;
    margin-bottom: 20px;
}
/* OTP boxes */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}
.otp-input {
    width: 52px;
    height: 58px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    text-align: center;
    font-size: 25px;
    font-weight: 600;
    color: #333;
    outline: none;
}
.otp-input:focus {
    border-color: var(--umoja-green);
    box-shadow: 0 0 0 2px rgba(47,137,111,.12);
}
/* Resend */
.resend-code {
    margin-top: 20px;
    color: #888;
    font-size: 15px;
}
#resendCode {
    border: none;
    background: none;
    color: var(--umoja-green);
    font-weight: 600;
    cursor: pointer;
    margin-left: 5px;
}
#resendCode:disabled {
    color: #aaa;
    cursor: not-allowed;
}
#otpTimer {
    margin-top: 8px;
    font-size: 14px;
    color: #999;
}
.back-registration {
    margin-top: 25px;
    border: none;
    background: transparent;
    color: #777;
    cursor: pointer;
    font-size: 14px;
}
.back-registration svg {
    width: 15px;
    vertical-align: middle;
}

/* Messages */
#registerMessage,
#verifyMessage {
    margin: 15px 0;
    font-size: 14px;
}
.message-error {
    color: #c0392b;
}
.message-success {
    color: var(--umoja-green);
}

/* Mobile */
@media (max-width: 600px) {
    .otp-inputs {
        gap: 6px;
    }
    .otp-input {
        width: 45px;
        height: 53px;
        font-size: 22px;
    }
}
.verification-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 12px 0 22px;
    color: #888;
    font-size: 13px;
}
.verification-security svg {
    width: 17px;
    height: 17px;
    color: #2F896F;
}
/* success screen*/
.registration-success {
    text-align: center;
    padding: 25px 10px;
}
.success-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(47,137,111,.10);
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-icon svg {
    width: 40px;
    height: 40px;
    color: #2F896F;
}
.registration-success h3 {
    color: #2F896F;
    font-size: 25px;
    margin-bottom: 10px;
}
.registration-success p {
    color: #777;
    font-size: 16px;
    line-height: 24px;
}
.success-loading {
    margin-top: 25px;
    color: #999;
    font-size: 14px;
}
