:root {
    --primary: #009933;
    --primary-light: #00d146;
    --primary-dark: #006633;
    --secondary: #4cc9f0;
    --success: #4ade80;
    --danger: #f87171;
    --warning: #fbbf24;
    --info: #60a5fa;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --artisan: #4361ee;
    --client: #10b981;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--dark);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    position: relative;
    z-index: 1;
}

/* Background effects */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f7ff 100%);
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234361ee' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.8;
}

.auth-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: .5rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.auth-header {
    text-align: center;
    margin-bottom: .5rem;
}

.auth-header h1 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.auth-form-container {
    padding: 1.5rem;
}

.form-floating > label {
    padding-left: 1rem;
    color: var(--gray);
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    height: 58px;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
    background-color: rgba(255, 255, 255, 1);
}

.form-floating > .form-control, .form-floating > .form-select {
    height: 58px;
}

.form-floating > .form-control:focus ~ label, .form-floating > .form-select:focus ~ label {
    color: var(--primary);
}

.btn {
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.35);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
    box-shadow: none;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: .5rem;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #e2e8f0;
    color: var(--dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.facebook:hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-btn.google:hover {
    background-color: #ea4335;
    color: white;
    border-color: #ea4335;
}

.social-btn.apple:hover {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray);
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.loading-indicator {
    display: none;
    margin-left: 0.5rem;
}

.loading-indicator .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-logo i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

.brand-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Form toggle */
.form-toggle {
    display: flex;
    background-color: rgba(226, 232, 240, 0.5);
    border-radius: 10px;
    padding: 0.25rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.form-toggle-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.form-toggle-btn.active {
    color: white;
}

.form-toggle-slider {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.25rem);
    height: calc(100% - 0.5rem);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1;
}

.form-toggle.register .form-toggle-slider {
    left: calc(50% + 0.25rem);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

/* Registration steps */
.registration-step {
    display: none;
}

.registration-step.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@media (min-width: 992px) {
    .auth-row {
        min-height: 600px;
    }
    
    .auth-image {
        border-radius: 16px 0 0 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8fafc;
        overflow: hidden;
    }
}

@media (max-width: 991.98px) {
    .auth-image {
        display: none;
    }
    
    .auth-form-container {
        border-radius: 16px;
    }
}

/* User type cards */
.user-type-cards {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.user-type-card {
    flex: 1;
    border-radius: 12px;
    border: 2px solid transparent;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.user-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.user-type-card.artisan {
    background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
}

.user-type-card.client {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff7 100%);
}

.user-type-card.selected.artisan {
    border-color: var(--artisan);
    background: linear-gradient(135deg, #f0f5ff 0%, #e6eeff 100%);
}

.user-type-card.selected.client {
    border-color: var(--client);
    background: linear-gradient(135deg, #f0fff7 0%, #e6fff0 100%);
}

.user-type-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.artisan .user-type-icon {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--artisan);
}

.client .user-type-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--client);
}

.user-type-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.user-type-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Selected type indicator */
.selected-type-indicator {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.selected-type-indicator.artisan {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--artisan);
}

.selected-type-indicator.client {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--client);
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    background-color: #e2e8f0;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.strength-weak .password-strength-bar {
    width: 25%;
    background-color: var(--danger);
}

.strength-medium .password-strength-bar {
    width: 50%;
    background-color: var(--warning);
}

.strength-good .password-strength-bar {
    width: 75%;
    background-color: var(--info);
}

.strength-strong .password-strength-bar {
    width: 100%;
    background-color: var(--success);
}

/* Accessibility improvements */
.form-control:focus, .form-select:focus, .btn:focus, .form-check-input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Animation for form elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-element {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}