@import url('../css/fonts.css');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}



.sign-up-page{
    display: flex;
    min-height: 100vh;
}

.sign-up-form-container{
    width: 50%;
    padding: 50px 80px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 100vh;
}

.header-info{
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
}

.logo img{
    width: 170px;
    display: block;
    margin: 0 auto 30px;
}

.progress-status{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.bar{
    height: 40px;
    width: 40px;
    background-color: #E0E0E0;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.bar.active{
    background-color: #202020;
    color: white;
}

/* Progress bar completed state */
.bar.completed{
    background-color: #10B981;
    color: white;
}

.loading-bar{
    width: 70px;
    background-color: #E0E0E0;
    height: 5px;
    border-radius: 10px;
}

.loading-bar.completed{
    background-color: #10B981;
}

.sign-up-heading{
    margin-bottom: 30px;
    text-align: center;
}

.sign-up-heading h2{
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.sign-up-heading p{
    color: #666;
    font-size: 0.95em;
}

/* Form Styles */
.sign-up-form{
    width: 100%;
    max-width: 500px;
}

.form-row{
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.form-group{
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    flex: 1;
}

.form-group label{
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select{
    padding: 12px 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.85em;
    font-family: "Montserrat", sans-serif;
    transition: all 0.3s ease;
    background-color: #FAFAFA;
    width: 100%;
    height: 55px;
}

.form-group input:focus,
.form-group select:focus{
    outline: none;
    border-color: #202020;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input::placeholder{
    color: #9CA3AF;
    font-size: 0.8em;
}

.form-group select{
    cursor: pointer;
    color: #333;
}

.form-group select option{
    padding: 10px;
}

/* Submit Button */
.form-actions{
    margin-top: 30px;
}

.submit-btn{
    width: 100%;
    padding: 14px;
    background-color: #202020;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.submit-btn:hover{
    background-color: #202020;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.submit-btn:active{
    transform: translateY(0);
}

/* Image Container */
.sign-up-image-container{
    width: 50%;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
}

.sign-up-image-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Note Style */
.form-note{
    font-size: 0.75em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* WhatsApp "same as phone" toggle */
.whatsapp-same-toggle{
    margin-top: 10px;
}

.whatsapp-same-toggle .toggle-input{
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.whatsapp-same-toggle .toggle-label{
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 0.82em;
    color: #333;
}

.whatsapp-same-toggle .toggle-track{
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #E5E7EB;
    position: relative;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
    flex: 0 0 auto;
}

.whatsapp-same-toggle .toggle-thumb{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.whatsapp-same-toggle .toggle-text{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.whatsapp-same-toggle .toggle-text i{
    color: #25D366;
    font-size: 1.05em;
}

.whatsapp-same-toggle .toggle-input:checked + .toggle-label .toggle-track{
    background: #25D366;
}

.whatsapp-same-toggle .toggle-input:checked + .toggle-label .toggle-thumb{
    transform: translateX(20px);
}

.whatsapp-same-toggle .toggle-input:focus-visible + .toggle-label .toggle-track{
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.28), inset 0 0 0 1px rgba(0,0,0,0.06);
}

/* Locked WhatsApp input styling (readonly, still submits) */
#whatsapp.is-locked{
    background-color: #F3F4F6;
    border-color: #E5E7EB;
    color: #6B7280;
    cursor: not-allowed;
    pointer-events: none;
}

/* Email Verification Styles */
.verification-form{
    text-align: center;
}

.code-input-container{
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.code-input{
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    background-color: #FAFAFA;
    transition: all 0.3s ease;
}

.code-input:focus{
    outline: none;
    border-color: #202020;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.code-input:valid{
    border-color: #10B981;
}

.resend-container{
    margin: 20px 0;
    text-align: center;
}

.resend-text{
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.resend-btn{
    background: none;
    border: none;
    color: #242424;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    transition: color 0.3s ease;
}

.resend-btn:hover:not(:disabled){
    color: #202020;
    text-decoration: underline;
}

.resend-btn:disabled{
    color: #9CA3AF;
    cursor: not-allowed;
}

#user-email{
    color: #1E3A8A;
}

/* Back button */
.back-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-btn:hover{
    color: #1E3A8A;
}

.back-btn i{
    font-size: 0.85em;
}

/* Welcome Page Styles */
.welcome-content{
    text-align: center;
    margin: 40px 0;
}

.welcome-icon{
    margin: 30px 0;
}

.welcome-icon i{
    font-size: 80px;
    color: #10B981;
}

.welcome-heading{
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.welcome-message{
    font-size: 1.2em;
    color: #1E3A8A;
    font-weight: 600;
    margin-bottom: 20px;
}

.welcome-subtext{
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto;
}

.welcome-actions{
    width: 100%;
    max-width: 500px;
    margin-top: 40px;
}

.dashboard-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dashboard-btn i{
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.dashboard-btn:hover i{
    transform: translateX(5px);
}

/* Password Strength Indicator Styles */
.password-strength-container {
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.strength-bar-bg {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 10px;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.3s ease;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #6b7280;
    transition: color 0.3s ease;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement.met {
    color: #10b981;
}

.requirement.met .req-icon {
    color: #10b981;
    font-weight: bold;
}

.req-icon {
    font-size: 14px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.req-text {
    flex: 1;
}

/* Password Input Wrapper with Toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
    font-size: 16px;
    user-select: none;
}

.toggle-password:hover {
    color: #4b5563;
}

/* Password Mismatch Message */
.password-mismatch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-mismatch i {
    font-size: 14px;
}

/* Divider */
.divider{
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #666;
    font-size: 0.85em;
    width: 100%;
}

.divider::before,
.divider::after{
    content: '';
    flex: 1;
    height: 1px;
    background-color: #D1D5DB;
}

.divider::before{
    margin-right: 15px;
}

.divider::after{
    margin-left: 15px;
}

/* Google Sign-Up Wrapper */
.google-signup-wrapper{
    display: flex;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
}

.google-signup-wrapper .g_id_signin {
    width: 100%;
}

.g_id_signin[data-type="standard"] {
    width: 100% !important;
}

.g_id_signin button {
    width: 100% !important;
    height: 50px !important;
    border-radius: 8px !important;
    font-size: 1em !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
}

/* Sign In Link */
.sign-in-link{
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9em;
    width: 100%;
}

.sign-in-link a{
    color: #1E3A8A;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sign-in-link a:hover{
    color: #202020;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .sign-up-form-container{
        padding: 40px 50px;
    }
    
    .sign-up-image-container{
        display: none;
    }
    
    .sign-up-form-container{
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sign-up-page{
        flex-direction: column;
    }
    
    .sign-up-form-container{
        width: 100%;
        padding: 30px 20px;
        max-height: none;
    }
    
    .sign-up-image-container{
        display: none;
    }
    
    .form-row{
        flex-direction: column;
        gap: 0;
    }

    .logo img{
        width: 150px;
    }

    .sign-up-heading h2{
        font-size: 1.5em;
    }
    
    .welcome-icon i{
        font-size: 60px;
    }
    
    .welcome-heading{
        font-size: 1.6em;
    }
    
    .welcome-message{
        font-size: 1.1em;
    }
}