/* INTERSIGHT Login Page Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e5128 0%, #2d6a4f 50%, #40916c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.auth-header {
    background: linear-gradient(135deg, #1e5128 0%, #2d6a4f 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.auth-header .logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.auth-header .header-text {
    text-align: left;
}

.auth-body {
    padding: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    background: #1e5128;
    color: white;
    border-radius: 10px;
}

.form-control, select.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    background-color: white;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-image: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control:focus, select.form-control:focus {
    border-color: #1e5128;
    box-shadow: 0 0 0 0.2rem rgba(30, 81, 40, 0.25);
    outline: 0;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%231e5128' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.btn-primary {
    background: linear-gradient(135deg, #1e5128 0%, #2d6a4f 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 81, 40, 0.3);
}

.user-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.user-type-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.user-type-card:hover {
    border-color: #1e5128;
    transform: translateY(-2px);
}

.user-type-card.active {
    border-color: #1e5128;
    background: #f8f9fa;
}

.user-type-card input[type="radio"] {
    display: none;
}

.alert {
    border-radius: 10px;
}

.additional-fields {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.additional-fields.show {
    display: block;
}

/* Step-by-step Registration Wizard */
.registration-wizard {
    position: relative;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.step.active {
    display: block;
}

.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.step-indicator.active {
    background: #1e5128;
    color: white;
}

.step-indicator.completed {
    background: #28a745;
    color: white;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 10px;
    position: relative;
    z-index: 1;
}

.step-connector.completed {
    background: #28a745;
}

.step-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1e5128;
}

.step-title h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-title p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 14px;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-step {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-step-back {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-step-back:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-step-next {
    background: linear-gradient(135deg, #1e5128 0%, #2d6a4f 100%);
    color: white;
}

.btn-step-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 81, 40, 0.3);
}

.btn-step-next:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.user-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.user-type-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.user-type-option:hover {
    border-color: #1e5128;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 81, 40, 0.1);
}

.user-type-option.selected {
    border-color: #1e5128;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(30, 81, 40, 0.15);
}

.user-type-option .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #1e5128;
}

.user-type-option .title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1e5128;
}

.user-type-option .description {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e5128;
}

.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-text {
    font-size: 12px;
    color: #6c757d;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .step-progress {
        padding: 0;
    }
    
    .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .user-type-selection {
        grid-template-columns: 1fr;
    }
}
