/* Custom CSS for KITEAI */

/* Logo styling */
.navbar-brand img {
    max-height: 40px;
    width: auto;
}

/* Hero logo styling */
.hero-section img {
    max-width: 300px;
    width: 100%;
    height: auto;
    /* Removed filter that was causing white rectangle */
}

/* Top right logo for main tab pages only - aligned with Get Started button */
.page-logo {
    position: absolute;
    top: 20px;
    right: 70px; /* Moved 50px to the left from 20px */
    z-index: 100; /* Lower z-index to stay below navbar */
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-logo img {
    max-height: 100px; /* Doubled from 50px */
    width: auto;
    display: block;
}

/* Enhanced social provider buttons */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 1.5rem; /* 50% bigger padding */
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    background-color: white;
    color: var(--text-color);
    border-radius: 12px; /* Larger border radius */
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 1.1rem; /* Bigger text */
    font-weight: 500;
}

.btn-social:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-social i {
    font-size: 1.8rem; /* 50% bigger icons */
    width: 2.5rem;
    text-align: center;
}

/* Colorful provider icons */
.btn-social .fa-google { color: #ea4335; }
.btn-social .fa-microsoft { color: #00a1f1; }
.btn-social .fa-apple { color: #000000; }
.btn-social .fa-facebook { color: #1877f2; }
.btn-social .fa-twitter { color: #000000; } /* X logo is black */
.btn-social .fa-x-twitter { color: #000000; } /* X logo is black */

/* Custom X (Twitter) icon using CSS */
.icon-x-twitter {
    display: inline-block;
    width: 1.8rem;
    height: 1.8rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
}

/* Primary vs other providers styling */
.btn-social.primary {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 116, 200, 0.05) 0%, rgba(0, 116, 200, 0.1) 100%);
}

.btn-social.other {
    opacity: 0.9;
    font-size: 1rem;
    padding: 1rem 1.25rem;
}

/* Footer social icons styling */
.footer .social-links a {
    color: #ccc;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.footer .social-links a:hover {
    color: white;
}

.footer .social-links .fa-google:hover { color: #ea4335; }
.footer .social-links .fa-apple:hover { color: #ffffff; }
.footer .social-links .fa-microsoft:hover { color: #00a1f1; }

/* Additional custom styles can be added here */
.logo-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #0074c8 100%);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Authentication Styles */

/* Background gradient for auth pages */
.bg-gradient-subtle {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Enhanced card shadows */
.card.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Enhanced button hover effects */
.btn:hover {
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Enhanced form control focus */
.form-control:focus {
    border-color: #0074c8;
    box-shadow: 0 0 0 0.2rem rgba(0, 116, 200, 0.25);
}

/* Enhanced password strength indicator */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Enhanced social auth buttons */
.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-dark:hover {
    background-color: #212529;
    border-color: #212529;
}

/* Enhanced mobile responsiveness */
@media (max-width: 576px) {
    .card-body {
        padding: 1.0rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Enhanced accessibility */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 116, 200, 0.5);
}

/* Enhanced loading states */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Enhanced device info display */
.device-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #0074c8;
}

/* Enhanced form validation states */
.was-validated .form-control:valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.8-.8-.8-.8 1.4-1.4.8.8 1.8-1.8.8.8-2.6 2.6zM6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    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='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4m0-1.4-1.4 1.4'/%3e%3c/svg%3e");
}

/* Enhanced password visibility toggle */
.input-group .btn {
    border-color: var(--bs-border-color);
}

.input-group .form-control:focus + .btn {
    border-color: #0074c8;
}

/* Enhanced trust indicators */
.badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
}

/* Enhanced rounded corners */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-top-4 {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.rounded-bottom-4 {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

/* Enhanced collapsible sections */
.collapse .d-grid {
    margin-top: 0.5rem;
}

/* Enhanced icon colors */
.text-primary {
    color: #0074c8 !important;
}

/* Enhanced loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Card header padding for all devices */
.card-header {
    padding: 1.25rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    /* Hide logo on mobile to prevent overlap */
    .page-logo {
        display: none;
    }
    
    /* Enhanced mobile auth styles */
    .container-fluid {
        padding: 1rem !important;
    }
    
    .card-header {
        padding: 1.0rem !important;
    }
    
    .card-footer {
        padding: 1rem !important;
    }
}