﻿/* FUMA TECHNOLOGIES/collab/create-account/style.css*/
/* General Body Styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #F5F5F5 url('../assets/hero-bg1.jpg') no-repeat center center/cover;
    background-blend-mode: overlay;
    font-family: 'Roboto', sans-serif;
    color: #212121;
    padding: 1rem;
}

/* Form Container */
.form-container {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.1);
    text-align: center;
}
.home-link img { width: 50px; margin-bottom: 1rem; }
h2 { font-weight: 700; margin-bottom: 0.5rem; color: #212121; }
h3 { margin-bottom: 0.5rem; }
.form-helper { font-size: 0.9rem; color: #757575; margin-bottom: 1.5rem; }

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
}
.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #E0E0E0;
    z-index: 1;
}
.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: var(--progress-width, 0%); 
    background-color: #FF6F00;
    z-index: 2;
    transition: width 0.4s ease;
}
.progress-step {
    width: 35px;
    height: 35px;
    background-color: #E0E0E0;
    color: #757575;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: all 0.4s ease;
    border: 3px solid #E0E0E0;
    z-index: 3;
}
.progress-step.active {
    background-color: #FF6F00;
    border-color: #FF6F00;
    color: #FFFFFF;
}

/* Form Steps */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Inputs & Buttons */
input, textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    background: #F5F5F5;
    color: #212121;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #FF6F00;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.2);
}
textarea { resize: vertical; min-height: 80px; }

.form-navigation { display: flex; gap: 1rem; margin-top: 1.5rem; }
.nav-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #FF6F00;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease-in-out;
}
#back-btn { background: transparent; color: #FF6F00; }
#back-btn:hover { background: rgba(255, 111, 0, 0.1); }
#next-btn, .submit-btn { background: #FF6F00; color: #FFFFFF; }
#next-btn:hover, .submit-btn:hover { background: #E65100; }
.submit-btn:disabled { background: #E0E0E0; border-color: #E0E0E0; cursor: not-allowed; }

/* Password Strength Bar */
.password-strength { margin: -0.5rem 0 1rem 0; text-align: left; }
.strength-bar { height: 5px; width: 0%; border-radius: 5px; transition: all 0.3s; background-color: #E0E0E0; }
.strength-text { font-size: 0.8rem; display: block; margin-top: 4px; color: #757575; }
.strength-bar.weak { background-color: #F44336; }
.strength-bar.medium { background-color: #FFC107; }
.strength-bar.strong { background-color: #4CAF50; }
.strength-bar.powerful { background-color: #03A9F4; }
/* Password eye icon wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #757575;
    font-size: 1rem;
}

.toggle-password:hover {
    color: #FF6F00;
}

/* ============================= */
/* PREMIUM PASSWORD ANIMATION */
/* ============================= */

.password-wrapper.premium {
    position: relative;
    overflow: hidden;
}

.password-wrapper.premium input {
    padding-right: 52px;
    filter: blur(2.2px);
    transition: 
        filter 0.45s ease,
        background 0.4s ease,
        box-shadow 0.4s ease;
}

/* Clear text when visible */
.password-wrapper.premium.revealed input {
    filter: blur(0);
    background: linear-gradient(
        120deg,
        #ffffff,
        #fff7f0
    );
    box-shadow: inset 0 0 0 1px rgba(255,111,0,0.2);
}

/* Eye Icon */
.password-wrapper.premium .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
    color: #999;
    transition:
        transform 0.45s cubic-bezier(.68,-0.55,.27,1.55),
        color 0.3s ease;
}

/* Rotate + glow when active */
.password-wrapper.premium.revealed .toggle-password {
    transform: translateY(-50%) rotate(180deg) scale(1.15);
    color: #FF6F00;
}

/* Glow Orb */
.password-wrapper.premium .eye-glow {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255,111,0,0.45),
        transparent 65%
    );
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.4s ease;
}

.password-wrapper.premium.revealed .eye-glow {
    opacity: 1;
    animation: pulseGlow 1.6s infinite;
}

/* Pulse animation */
@keyframes pulseGlow {
    0% { transform: translateY(-50%) scale(0.9); }
    50% { transform: translateY(-50%) scale(1.15); }
    100% { transform: translateY(-50%) scale(0.9); }
}


/* Photo Upload & Terms */
input[type="file"] { display: none; }
.photo-upload-label {
    display: inline-block;
    cursor: pointer;
    width: 100%;
    padding: 1rem;
    border: 2px dashed #E0E0E0;
    border-radius: 8px;
    color: #757575;
    transition: all 0.3s;
}
.photo-upload-label:hover { border-color: #FF6F00; color: #FF6F00; background: rgba(255, 111, 0, 0.05); }
#photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.terms-agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.terms-agreement input {
    width: auto;
    margin: 0 0.5rem 0 0;
}
.terms-agreement a {
    color: #FF6F00;
    text-decoration: none;
    font-weight: 500;
}

/* Error Messages */
.form-error-main { color: #F44336; min-height: 1.2em; font-weight: 500; margin-top: 1rem; }
.form-error-inline { color: #F44336; font-size: 0.8rem; text-align: left; min-height: 1em; margin-top: -0.75rem; margin-bottom: 0.5rem; }

/* EMAIL VERIFICATION MODAL */
.email-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.email-modal-content {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-top: 5px solid #FF6F00;
}

.email-icon-box {
    width: 80px; height: 80px;
    background: rgba(255, 111, 0, 0.1);
    color: #FF6F00;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.email-modal h2 { font-size: 1.8rem; margin-bottom: 10px; }
.email-modal p { color: #666; line-height: 1.6; margin-bottom: 25px; }

/* NEW: Extra Links for Login Form */
.extra-links {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.extra-links a {
    color: #FF6F00;
    text-decoration: none;
    font-weight: 500;
}

/* NEW: Toggle Container */
.toggle-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E0E0E0;
    font-size: 0.9rem;
    color: #757575;
}
.toggle-container a {
    color: #FF6F00;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* OTP Input Specifics */
#otp-code-input {
    border: 2px solid #E0E0E0;
    transition: border-color 0.3s;
}
#otp-code-input:focus {
    border-color: #FF6F00;
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.1);
}

/* Ensure the modal z-index is high enough */
#otp-modal {
    z-index: 9999;
}
