:root {
    --primary: #874b05; /* Text/Labels */
    --secondary: #058776; /* Buttons/Hover */
    --accent: #ffe600; /* Icons */
    --error: #dc3545; /* Error messages */
    --success: #28a745; /* Success messages */
}

/* Base Styles */
body {
    font-family: 'Figtree', sans-serif;
    margin: 0;
    padding: 0;
    /* background-color: #f8f9fa; */
    /* color: #212529; */
}

/* Auth Page Layout */
.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* opacity: 0.8; */
}

.auth-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2rem;
}

.auth-card {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    display: block;
    margin: 0 auto 2rem;
    max-width: 180px;
    height: auto;
}

/* Typography */
.card-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(5, 135, 118, 0.25);
}

.input-group-text {
    background-color: #fff;
    border-color: #ced4da;
}

/* Step Progress */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(to right, var(--secondary), #04a08e);
    transition: width 0.5s ease;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    position: relative;
    text-align: center;
    flex: 1;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.step-label i {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.step-label.active {
    color: var(--primary);
    font-weight: 600;
}

.step-label.active i {
    color: var(--secondary);
}

/* Step Transitions */
.step {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #046a5e;
    border-color: #046a5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary);
    color: white;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Validation */
.invalid-feedback {
    display: none;
    color: var(--error);
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: var(--error) !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Password Toggle */
.toggle-password {
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background-color: rgba(5, 135, 118, 0.1);
}

/* Dropify Customization */
.dropify-wrapper {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    background-color: #fff;
    padding: 0;
    min-height: 120px;
}

.dropify-wrapper .dropify-message {
    color: var(--primary);
    font-size: 0.9rem;
}

.dropify-wrapper .dropify-message span.file-icon {
    color: var(--accent);
    font-size: 2rem;
}

/* Alerts */
.alert {
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: var(--error);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .logo {
        max-width: 140px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-label i {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Terms Link */
a.text-secondary {
    text-decoration: underline;
    transition: color 0.2s ease;
}

a.text-secondary:hover {
    color: var(--primary) !important;
}

/* Phone Input */
/* intl-tel-input customization */
.iti {
    width: 100%;
/* reduce the height */
    height: 50%;
}

/* .iti__flag-container {
    padding: 0 10px;
}  */

.iti__selected-flag {
    padding: 0px 10px;
    background-color: transparent !important;
    /* border-top: 1px solid #ced4da; */
    /* border-bottom: 1px solid #ced4da; */
}

.iti__arrow {
    border-top-color: var(--primary);
}

.iti__country-list {
    border-radius: 0.375rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.iti__divider {
    border-bottom-color: #dee2e6;
}

.iti__country.iti__highlight {
    background-color: rgba(5, 135, 118, 0.1);
}