/* Wooki Custom Styles for Authentication Pages */

/* Branding Colors */
:root {
    --wooki-primary: #6741B9;
    --wooki-primary-dark: #5533A0;
    --wooki-secondary: #A77FD9;
    --wooki-dark: #1a1a2e;
    --wooki-light: #f8f9fa;
    --wooki-gradient: linear-gradient(135deg, #6741B9 0%, #A77FD9 100%);
}

/* ========================================
   BACKGROUND & LAYOUT
   ======================================== */

/* Scroll behavior - only on form column */
@media (min-width: 992px) {
    .login-content .col-lg-6:not(.wooki-banner-bg) {
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .login-content .col-lg-6.wooki-banner-bg {
        position: sticky;
        top: 0;
        max-height: 100vh;
        overflow: hidden;
    }
}

/* Wooki Banner Background - Solid Gradient with Brand Purple */
.wooki-banner-bg {
    background: linear-gradient(135deg, #6741B9 0%, #8B5FBF 50%, #A77FD9 100%);
    position: relative;
    min-height: 100vh;
}

/* Decorative Elements - Subtle circles */
.wooki-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.wooki-decoration-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
}

.wooki-decoration-2 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    left: -100px;
}

.wooki-decoration-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 10%;
    opacity: 0.5;
}

/* ========================================
   BADGE STYLES (Like Kitanda)
   ======================================== */

.wooki-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideDown 0.6s ease-out;
}

.wooki-badge-icon {
    font-size: 1.2rem;
}

.wooki-badge-text {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HEADLINE STYLES
   ======================================== */

.wooki-headline {
    font-size: 3.5rem;
    line-height: 1.2;
    color: #ffffff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.wooki-subheadline {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ========================================
   FEATURE BADGES (Like Kitanda's icons)
   ======================================== */

.wooki-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.wooki-feature-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.wooki-feature-badge-icon {
    font-size: 1.2rem;
}

/* ========================================
   STATS CARDS (Like Kitanda's metrics)
   ======================================== */

.wooki-stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: scaleIn 0.6s ease-out 0.8s both;
}

.wooki-stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.wooki-stat-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wooki-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
    text-transform: uppercase;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   TEXT ANIMATIONS
   ======================================== */

.wooki-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.wooki-fade-in-delay {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

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

/* ========================================
   LOGO & AUTH CARD
   ======================================== */

/* Logo Animation */
.logo-normal svg {
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-normal svg {
    transform: scale(1.1) rotate(5deg);
}

/* Auth Card Enhancements */
.auth-card {
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: none;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wooki-gradient);
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

/* ========================================
   FORM CONTROLS
   ======================================== */

.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--wooki-primary);
    box-shadow: 0 0 0 4px rgba(63, 240, 185, 0.1);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--wooki-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background: var(--wooki-gradient);
    border: none;
    padding: 0.875rem 3rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(63, 240, 185, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ========================================
   SOCIAL ICONS
   ======================================== */

.list-group-item a {
    display: block;
    transition: all 0.3s ease;
    filter: grayscale(0);
}

.list-group-item a:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border-radius: 12px;
    border: none;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(63, 240, 185, 0.15), rgba(45, 212, 160, 0.1));
    color: var(--wooki-primary-dark);
    border-left: 4px solid var(--wooki-primary);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.1));
    color: #c82333;
    border-left: 4px solid #dc3545;
}

/* ========================================
   CHECKBOX & SELECT
   ======================================== */

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

.form-check-input:focus {
    border-color: var(--wooki-primary);
    box-shadow: 0 0 0 0.2rem rgba(63, 240, 185, 0.25);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235856D6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* ========================================
   LINKS
   ======================================== */

a {
    color: var(--wooki-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--wooki-primary-dark);
}

a.text-underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========================================
   LOADER
   ======================================== */

.loader-body img {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .auth-card {
        margin: 30px 0;
    }
    
    .logo-title {
        font-size: 1.5rem;
    }
    
    .wooki-headline {
        font-size: 2.5rem;
    }
    
    .wooki-stat-card {
        padding: 1.5rem 1rem;
    }
    
    .wooki-stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   MULTI-STEP FORM
   ======================================== */

/* Steps Progress Bar */
.wooki-steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.wooki-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.wooki-step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
}

.wooki-step-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.wooki-step.active .wooki-step-number {
    background: var(--wooki-gradient);
    color: white;
    border-color: var(--wooki-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(63, 240, 185, 0.4);
}

.wooki-step.active .wooki-step-label {
    color: var(--wooki-primary-dark);
    font-weight: 700;
}

.wooki-step.completed .wooki-step-number {
    background: var(--wooki-primary);
    color: white;
    border-color: var(--wooki-primary);
}

.wooki-step.completed .wooki-step-number::after {
    content: '✓';
    position: absolute;
}

.wooki-step-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 1rem;
    max-width: 100px;
    position: relative;
    transition: all 0.3s ease;
}

.wooki-step-line.completed {
    background: var(--wooki-primary);
}

/* Form Steps */
.wooki-form-step {
    display: none;
    animation: fadeInStep 0.5s ease-out;
}

.wooki-form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Role Selection Cards */
.wooki-role-card {
    display: block;
    padding: 2rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    position: relative;
}

.wooki-role-card:hover {
    border-color: var(--wooki-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(63, 240, 185, 0.15);
}

.btn-check:checked + .wooki-role-card {
    border-color: var(--wooki-primary);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(63, 240, 185, 0.05), rgba(88, 86, 214, 0.05));
    box-shadow: 0 10px 30px rgba(63, 240, 185, 0.2);
    transform: translateY(-5px);
}

.btn-check:checked + .wooki-role-card::before {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    background: var(--wooki-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(63, 240, 185, 0.4);
    animation: checkmarkPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.wooki-role-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.btn-check:checked + .wooki-role-card .wooki-role-icon {
    filter: grayscale(0%);
}

.wooki-role-card h5 {
    color: var(--wooki-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wooki-role-benefits {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    text-align: left;
}

.wooki-role-benefits li {
    padding: 0.5rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
    padding-left: 0.5rem;
}

/* Password Toggle */
.wooki-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.wooki-password-toggle:hover {
    color: var(--wooki-primary);
}

/* Navigation Buttons */
.wooki-next-btn,
.wooki-prev-btn {
    min-width: 120px;
}

.btn-outline-secondary {
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: var(--wooki-dark);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.opacity-75 {
    opacity: 0.75 !important;
}

.text-muted {
    color: #6c757d !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fs-1 {
    font-size: 2.5rem !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--wooki-primary);
    outline-offset: 2px;
}
