/* Signup Pages Specific Styles */

/* Account Type Toggle - Pill-shaped switch with animation */
.account-type-toggle {
    display: inline-flex;
    background: #F0F0F0;
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 30px;
    gap: 0;
    position: relative;
    width: fit-content;
}

/* Animated sliding background */
.account-type-toggle::before {
    content: '';
    position: absolute;
    width: calc(50% - 7px);
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 50px;
    top: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 0;
}

/* Move slider to right when Organization is active */
.account-type-toggle.organization-active::before {
    transform: translateX(calc(100% + 4px));
}
.page-form .toggle-btn {
    flex: 1;
    max-width: 140px;
    height: fit-content;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease, font-weight 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    margin: 0;
}

.toggle-btn i {
    font-size: 16px;
    font-style: normal;
    display: none; /* Hide icons for cleaner look */
}

.toggle-btn.active {
    color: #013879;
    font-weight: 600;
}

.toggle-btn:hover:not(.active) {
    color: #666;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: #e74c3c;
}

.strength-fill.medium {
    width: 66%;
    background: #f39c12;
}

.strength-fill.strong {
    width: 100%;
    background: #27ae60;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
}

.strength-text.weak {
    color: #e74c3c;
}

.strength-text.medium {
    color: #f39c12;
}

.strength-text.strong {
    color: #27ae60;
}

/* International Phone Input */
.iti {
    width: 100%;
    display: block;
}

.iti__flag-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 0;
}

.iti__selected-flag {
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    background: transparent;
}

/* Progress Indicator (for Step 2) */
.signup-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-circle,
.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F6F8FA;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #999;
}

.progress-step.active .progress-circle,
.progress-step.active .step-number {
    background: #013879;
    border-color: #013879;
    color: #fff;
}

.progress-step.completed .progress-circle,
.progress-step.completed .step-number {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}

.progress-label,
.step-label {
    font-size: 14px;
    color: #999;
}

.progress-step.active .progress-label,
.progress-step.active .step-label {
    color: #013879;
    font-weight: 600;
}

.progress-step.completed .progress-label,
.progress-step.completed .step-label {
    color: #27ae60;
}

.progress-divider,
.progress-line {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
}

.progress-step.completed ~ .progress-divider,
.progress-line.active {
    background: #27ae60;
}

/* Checkbox for Terms */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #27ae60;
}

.terms-checkbox label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.terms-checkbox a {
    color: #013879;
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Green Submit Button Override */
.page-form .btn-primary.btn-create {
    background: #27ae60;
    border-color: #27ae60;
}

.page-form .btn-primary.btn-create:hover {
    background: #229954;
    border-color: #229954;
}

.page-form .btn-primary.btn-create:before {
    background: rgba(255, 255, 255, 0.2);
}

/* Organization Specific Fields */
.company-size-select {
    width: 100%;
    padding: 18px 15px;
    background: #F6F8FA;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    color: #222;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.company-size-select:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(1, 56, 121, 0.1);
}

/* Check Email Page */
.auth-message {
    text-align: center;
    margin: 20px 0;
}

.auth-help {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    width: 100%;
}

.auth-help h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: #666;
}

.help-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #013879;
    font-weight: 700;
}

.link-button {
    background: none;
    border: none;
    color: #013879;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

.link-button:hover {
    color: #DA7A1B;
}

.email-highlight {
    font-size: 16px;
    font-weight: 600;
    color: #013879;
    margin: 10px 0;
}

.success-icon {
    margin: 30px auto;
    text-align: center;
}

/* Form Actions (Back/Next buttons) */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

.icon-arrow-left {
    margin-right: 10px;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .company-size-select {
        padding: 18px 18px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .account-type-toggle {
        flex-direction: row; /* Keep horizontal on mobile */
    }

    .toggle-btn {
        max-width: 100%;
        font-size: 13px;
        padding: 10px 15px;
    }

    .signup-progress {
        flex-direction: row;
        gap: 30px;
    }

    .progress-divider,
    .progress-line {
        width: 2px;
        height: 20px;
        transform: rotate(90deg);
    }

    .form-actions {
        flex-direction: row;
    }
}
