/* Add these styles to your existing organizationLogin.css */

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(255, 122, 61, 0.2);
}

.step.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: #666;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-line {
    position: absolute;
    top: 20px;
    right: -60%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #e0e0e0 100%);
}

.step.completed .step-line {
    background: linear-gradient(90deg, #28a745 0%, #28a745 100%);
}

/* User List */
.user-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 0.6rem;
    margin: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.user-list::-webkit-scrollbar {
    width: 6px;
}

.user-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.user-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-item:last-child {
    border-bottom: none;
}

.user-item:hover {
    background-color: #f5f5f5;
    transform: translateX(5px);
}

.user-item.selected {
    background: linear-gradient(90deg, rgba(255, 122, 61, 0.1) 0%, rgba(255, 122, 61, 0.05) 100%);
    border-left: 3px solid var(--primary-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--dark-color);
}

.user-email {
    font-size: 0.8rem;
    color: #666;
}

/* Verification Message */
.verification-message {
    background: linear-gradient(135deg, #e8f4fd, #d4e9fa);
    border: 1px solid #b8daff;
    color: #004085;
    padding: 1rem;
    border-radius: 0.6rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.verification-message::before {
    content: '\f0e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 2.5rem;
    opacity: 0.1;
    color: #004085;
}

/* Timer */
.TimeData {
    position: absolute;
    bottom: 6px;
    right: 6px;
    margin: 0;
    border-radius: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    border: solid 1px #e0e0e0;
    font-weight: 600;
    color: var(--primary-color);
    z-index: 1;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.strength-bar {
    height: 4px;
    background: linear-gradient(90deg, #e0e0e0, #f0f0f0);
    border-radius: 2px;
    margin-top: 0.2rem;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.strength-weak {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

.strength-medium {
    background: linear-gradient(90deg, #ffc107, #ffdb6d);
}

.strength-strong {
    background: linear-gradient(90deg, #28a745, #5cb85c);
}

/* Resend Link */
.resend-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.resend-link:hover {
    text-decoration: underline;
}

.resend-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.resend-link:hover::after {
    transform: scaleX(1);
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 1rem;
}

.back-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .step-indicator {
        gap: 0.5rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .user-item {
        padding: 0.6rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FAF7F3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container */
.login-container {
    width: 100%;
    max-width: 650px;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.8rem;
    color: #1A1A1A;
    margin-bottom: 0.3rem;
}

.login-header p {
    color: #999;
    font-size: 0.9rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.2rem;
    background: #f5f5f5;
    padding: 0.5rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

.tab {
    flex: 1;
    padding: 0.6rem 0.5rem;
    border: none;
    border-radius: 0.8rem;
    background: transparent;
    color: #666;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.3s;
}

.tab i {
    font-size: 1rem;
}

.tab.active {
    background: white;
    color: #FF7A3D;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab:hover {
    background: #e0e0e0;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Info Box */
.info-box {
    background: #f8f9fa;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box i {
    color: #FF7A3D;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #1A1A1A;
    font-size: 0.85rem;
}

/* Input Groups */
.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.6rem !important;
    font-size: 0.95rem;
    background: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: #FF7A3D;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: #FF7A3D;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: #E56A2D;
}

/* Verification Box */
.verification-box {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.6rem;
    border-left: 3px solid #FF7A3D;
}

/* Code Message */
.code-message {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    color: #004085;
    padding: 0.8rem;
    border-radius: 0.6rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.code-message i {
    color: #004085;
}

.resend-link {
    color: #FF7A3D;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
}

.resend-link:hover {
    text-decoration: underline;
}

/* User List */
.user-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 0.6rem;
    margin: 1rem 0;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.user-item:last-child {
    border-bottom: none;
}

.user-item:hover {
    background: #f5f5f5;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FF7A3D;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #1A1A1A;
}

.user-email {
    font-size: 0.8rem;
    color: #666;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 1rem;
    color: #999;
    font-size: 0.9rem;
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.back-link a:hover {
    color: #FF7A3D;
}

/* Terms */
.terms {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    margin-top: 1.5rem;
}

.terms a {
    color: #FF7A3D;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* Desktop Layout */
@media (min-width: 1024px) {
    body {
        justify-content: flex-end;
        padding-right: 2rem;
        background: transparent;
        margin-right: 10%;
    }
}

/* Mobile Layout */
@media (max-width: 1023px) {
    .login-container {
        padding: 1rem;
    }
    
    .tab {
        font-size: 0.75rem;
    }
}

/* User List Styles */
.user-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.user-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-card:last-child {
    border-bottom: none;
}

.user-card:hover {
    background-color: #f8f9fa;
}

.user-card.selected {
    background-color: #e8f0fe;
    border-left: 3px solid #4CAF50;
}

.user-radio {
    margin-right: 15px;
}

.user-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 16px;
}

.user-name i {
    color: #4CAF50;
    margin-right: 8px;
    width: 16px;
}

.user-role {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.user-role i {
    color: #ff9800;
    margin-right: 8px;
    width: 16px;
}

.user-created {
    font-size: 12px;
    color: #999;
}

.user-created i {
    color: #2196F3;
    margin-right: 8px;
    width: 16px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 10px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Password fields initially hidden */
#forgotVerificationSection .form-group:nth-child(5),
#forgotVerificationSection .form-group:nth-child(6) {
    display: none;
}

/* Responsive Design */
@media (max-width: 480px) {
    .user-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-radio {
        margin-bottom: 10px;
    }
    
    .user-details {
        width: 100%;
    }
}

/* Additional styles for radio buttons */
.radio-group {
    margin: 15px 0;
}

.radio-option {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background-color: #f5f5f5;
    border-color: #ff6b6b;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.radio-option label {
    cursor: pointer;
    display: inline-block;
    width: calc(100% - 30px);
    font-size: 16px;
    color: #333;
}

.radio-option label i {
    margin-right: 8px;
    color: #ff6b6b;
}

.no-users {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

.divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 2;
}