/* Enhanced Auth Pages Styling */

/* Auth Wrapper */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Visual Panel (Desktop) */
.auth-visual-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-visual-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.auth-visual-panel-signup {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 100%;
}

.auth-visual-logo {
    text-align: center;
}

.auth-visual-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.auth-features {
    margin-top: 3rem;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.auth-feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.auth-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.auth-feature-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-feature-item p {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Form Container */
.auth-form-card {
    width: 100%;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

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

.auth-header p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Form Controls */
.auth-form-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-form-card .form-control-lg {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.auth-form-card .form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgb(99 102 241 / 0.1);
    outline: none;
}

.auth-form-card .form-control-lg::placeholder {
    color: #94a3b8;
}

/* Google Button */
.btn-google {
    background-color: white;
    border: 2px solid var(--border-color);
    color: var(--dark-color);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-google:hover {
    background-color: #f8fafc;
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--dark-color);
}

.btn-google:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.divider span {
    padding: 0 1rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
    background: white;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-top: 0;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

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

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

.form-check-label {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Primary Button */
.btn-primary.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.btn-primary.btn-lg:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgb(99 102 241 / 0.3);
}

.btn-primary.btn-lg:active {
    transform: translateY(0);
}

/* Alert */
.alert {
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    border: none;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

/* Form Text */
.form-text {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.form-text i {
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

/* Footer */
.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.auth-footer a {
    font-weight: 600;
    transition: color 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .auth-wrapper {
        background: white;
    }

    .auth-form-card {
        padding: 2rem;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .auth-form-card {
        padding: 1.5rem;
        border: none;
        border-radius: 0;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-feature-item {
        padding: 0.75rem;
    }

    .auth-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .btn-google,
    .btn-primary.btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .form-control-lg {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 576px) {
    .auth-form-card {
        padding: 1.25rem;
    }

    .auth-header h1 {
        font-size: 1.375rem;
    }

    .row.g-3.mb-3 .col-md-6 {
        margin-bottom: 0 !important;
    }
}

/* Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-form-card {
    animation: slideInRight 0.5s ease-out;
}

/* Focus visible for accessibility */
.form-control:focus-visible,
.btn:focus-visible,
.form-check-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
