/* ========================================
   AFRICAN SPOTS v2 - AUTH STYLES
   Signup and authentication pages
   ======================================== */

/* Hide header and footer on auth pages */
header, .afri-footer {
    display: none !important;
}

/* Right Side - Hero Background */
.main-signup-right {
    background-image: url('../images/hero-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    display: none; /* Mobile: hidden */
    width: 65%; /* Desktop: 65% width */
}

/* Mobile: force hide right side */
@media (max-width: 768px) {
    .main-signup-right {
        display: none !important;
    }
}

/* Desktop: show right side */
@media (min-width: 769px) {
    .main-signup-right {
        display: flex !important;
    }
}

.main-signup-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* System Title */
.system-title {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
}

.system-title-link {
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.system-title-link:hover {
    text-decoration: none;
    color: #f1f1f1;
    transform: translateY(-2px);
}

.system-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.system-title p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0.5rem 0 0 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}


/* Signup page styles */
.signup-page {
    display: none;
}

.signup-page.active {
    display: block;
}

.progress-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #E5E5E5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: #1A1A1A;
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 33.33%;
}

.progress-text {
    font-size: 0.875rem;
    color: #737373;
    font-weight: 500;
}

.navigation-button {
    margin-top: 0.5rem !important;
    margin-bottom: 0.2rem !important;
}

.navigation-button button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #e3e3e3 !important;
    border-color: #e3e3e3 !important;
}


.benefits-container {
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
}

.benefits-container h6,
.benefits-container p {
    text-align: left !important;
}

.benefit-item {
    margin-bottom: 1rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item h6 {
    margin-bottom: 0.5rem;
    color: #1A1A1A;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-item h6 i {
    color: #1A1A1A;
    opacity: 0.9;
    display: none !important;
    font-size: 1.1rem;
}

.benefit-item p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #737373;
    line-height: 1.5;
}

.signup-page h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.signup-page p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Responsive font sizes */
@media (max-width: 768px) {
    .signup-page h3 {
        font-size: 1.25rem;
    }
    
    .signup-page p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .signup-page h3 {
        font-size: 1.1rem;
    }
    
    .signup-page p {
        font-size: 0.85rem;
    }
}

.main-signup-left {
    max-height: 100vh;
    overflow-y: auto;
    padding: 2rem 3rem;
    width: 100%; /* Mobile: full width */
}

/* Desktop: 35% width */
@media (min-width: 769px) {
    .main-signup-left {
        width: 35%;
    }
}

.logo-img {
    width: 32.5%;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto !important;
}


@media (min-width: 768px) {
    .logo-img {
        width: 25%;
    }
}

.benefit-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem 0;
}

.benefit-icon {
    margin-bottom: 2rem;
}

.benefit-svg {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.benefit-text h3 {
    font-size: 1.5rem;
    color: #1A1A1A;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.benefit-text p {
    font-size: 1.1rem;
    color: #737373;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.form-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    height: 100%;
    text-align: left;
    padding: 2rem 0;
    width: 100%;
}

.form-content form {
    width: 100%;
}

.form-content h3 {
    font-size: 1.5rem;
    color: #1A1A1A;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.form-content p {
    font-size: 1rem;
    color: #737373;
    margin-bottom: 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1A1A1A;
    font-weight: 600;
    text-align: left;
}

.required {
    color: #FF6600;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #FF6600;
}

/* Phone Input Container */
.phone-input-container {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #E5E5E5;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.phone-input-container:focus-within {
    border-color: #FF6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.country-code-selector {
    flex-shrink: 0;
}

.country-code-selector select {
    border: none;
    border-right: 1px solid #E5E5E5;
    border-radius: 0;
    padding: 12px 8px;
    background-color: #f8f9fa;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    min-width: 100px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.country-code-selector select:hover {
    background-color: #f0f0f0;
}

.country-code-selector select:focus {
    outline: none;
    background-color: #ffffff;
}

.phone-number-input {
    border: none;
    border-radius: 0;
    padding: 12px 16px;
    flex: 1;
    font-size: 16px;
    box-sizing: border-box;
}

.phone-number-input:focus {
    outline: none;
    box-shadow: none;
}

.phone-validation-message {
    display: none; /* Hide validation messages - using border colors instead */
}

/* Input Validation Styles - Border Colors Only */
.form-control.email-valid,
.phone-number-input.phone-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.form-control.email-invalid,
.phone-number-input.phone-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control.email-valid:focus,
.phone-number-input.phone-valid:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.form-control.email-invalid:focus,
.phone-number-input.phone-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 0.9rem;
    color: #737373;
    line-height: 1.4;
}

/* Dot Progress Indicator */
.dot-progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
    position: relative;
}

.dot {
    width: 10.4px;
    height: 10.4px;
    border-radius: 50%;
    background-color: #1a1a1a;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.dot:hover {
    transform: scale(1.2);
}

/* Current page - flowing width animation */
.dot.active {
    width: 41.6px;
    height: 10.4px;
    border-radius: 5.2px;
    background-color: #FF6600;
    transform: scale(1);
    animation: flowExpand 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Completed pages */
.dot.completed {
    background-color: #FF6600;
    animation: flowComplete 0.3s ease-out;
}

/* Disabled pages */
.dot.disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.dot.disabled:hover {
    transform: none;
}

/* Flowing animation keyframes */
@keyframes flowExpand {
    0% {
        width: 10.4px;
        border-radius: 50%;
    }
    50% {
        width: 26px;
        border-radius: 7.8px;
    }
    100% {
        width: 41.6px;
        border-radius: 5.2px;
    }
}

@keyframes flowComplete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dot-progress-indicator {
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    .dot {
        width: 7.8px;
        height: 7.8px;
    }
    
    .dot.active {
        width: 31.2px;
        height: 7.8px;
    }
    
    @keyframes flowExpand {
        0% {
            width: 7.8px;
            border-radius: 50%;
        }
        50% {
            width: 19.5px;
            border-radius: 5.85px;
        }
        100% {
            width: 31.2px;
            border-radius: 3.9px;
        }
    }
}
.hideShowPassword-wrapper button,
.hideShowPassword-toggle-show,
.hideShowPassword-toggle-hide,
.my-toggle {
    display: none !important;
}

.hideShowPassword-field {
    padding-right: 16px !important;
    margin: 0 !important;
}

/* Ensure our password fields remain clean */
.form-control[type="password"],
.form-control[type="text"] {
    padding-right: 16px !important;
}

/* Password Strength Indicator */
.password-strength-container {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    padding-top: 4px !important;
}

.password-strength-bar {
    width: 100%;
    height: 4px;
    background: #E5E5E5;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px !important;
    margin-bottom: 4px !important;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-text {
    font-size: 0.75rem;
    color: #737373;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

.strength-level {
    font-weight: 600;
}

/* Success Page */
#page-success {
    padding: 2rem 0;
}

.success-icon {
    margin-bottom: 2rem;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.success-icon img {
    max-width: 200px;
    height: auto;
    margin: 0 auto !important;
}

#page-success .form-content {
    text-align: center !important;
}

#page-success h3,
#page-success p {
    text-align: center !important;
}

.success-actions {
    margin-top: 2rem;
}

.success-actions .cta-button {
    min-width: 200px;
}

/* Terms Link */
.terms-link {
    color: #FF6600;
    text-decoration: none;
}

.terms-link:hover {
    color: #FF6600;
    text-decoration: none;
}

/* Forgot Password Link */
.forgot-password-link {
    color: #FF6600;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.forgot-password-link:hover {
    color: #FF6600;
    text-decoration: underline;
}

/* Logo Link Styling */
.main-signup-left > a {
    text-decoration: none;
    display: inline-block;
}

.main-signup-left > a:hover {
    text-decoration: none;
}

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
