/* 
 * BIEN Payment Solutions - Registration Pages Custom Styles
 * Enhanced styling for agent and corporate registration
 */

/* Extend the colored background to cover 3/4 of the viewport */
.auth-one-bg-position {
    height: 75vh !important;
    min-height: 600px;
}

/* Responsive adjustments for mobile */
@media (max-width: 767.98px) {
    .auth-one-bg-position {
        height: 70vh !important;
        min-height: 500px;
    }
}

/* Step Progress Indicator */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.step-item.active .step-number {
    background: #405189;
    color: white;
    box-shadow: 0 0 0 4px rgba(64, 81, 137, 0.2);
}

.step-item.completed .step-number {
    background: #0ab39c;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
}

.step-item.active .step-label {
    color: #405189;
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File Upload Wrapper */
.file-upload-wrapper {
    border: 2px dashed #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #fff;
}

.file-upload-wrapper:hover {
    border-color: #405189;
    background: #f8f9fa;
}

.file-upload-wrapper.dragover {
    border-color: #0ab39c;
    background: #f0fdf4;
    transform: scale(1.02);
}

.file-upload-wrapper.uploaded {
    border-color: #0ab39c;
    background: #f0fdf4;
}

.file-upload-wrapper i {
    transition: transform 0.3s ease;
}

.file-upload-wrapper:hover i {
    transform: scale(1.1);
}

/* File name display */
.file-name {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Director Entry Cards */
.director-entry {
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.director-entry:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Navigation Buttons */
.auth-page-wrapper .btn {
    transition: all 0.3s ease;
}

.auth-page-wrapper .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced card styling */
.auth-page-wrapper .card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: none;
}

/* Loading state for submit button */
.btn .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Form validation styling */
.is-invalid {
    border-color: #f06548 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f06548'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f06548' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Success state for validated fields */
.is-valid {
    border-color: #0ab39c !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%230ab39c' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* File upload validation states */
.file-upload-wrapper.is-invalid,
.file-upload-wrapper[style*="border-color: rgb(240, 101, 72)"] {
    border-color: #f06548 !important;
    animation: shake 0.4s ease-in-out;
}

.file-upload-wrapper.uploaded,
.file-upload-wrapper[style*="border-color: rgb(10, 179, 156)"] {
    border-color: #0ab39c !important;
    background-color: #f0fdf4 !important;
    animation: checkmark 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .step-label {
        font-size: 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .step-label {
        display: none;
    }
    
    .file-upload-wrapper {
        padding: 1rem;
    }
}

