/* Welcome Page Custom Styles */

/* Responsive Design Improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    
    .text-lg {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

/* Form Styling Improvements */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-input:hover {
    border-color: #9ca3af;
}

/* Button Improvements */
.btn-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

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

/* Card Improvements */
.card-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-info {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* School Logo - Remove any background */
.school-logo {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* School Logo Container - Ensure no background */
.school-logo-container,
.logo-container .flex-shrink-0:last-child {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Additional overrides for school logo */
.school-logo-container img,
img.school-logo {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    background-clip: initial !important;
    background-origin: initial !important;
    background-size: initial !important;
    background-repeat: initial !important;
    background-position: initial !important;
    background-attachment: initial !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    /* Force remove any white/gray background */
    mix-blend-mode: multiply !important;
    isolation: isolate !important;

    /* Remove any possible container backgrounds */
    outline: none !important;
    outline-offset: 0 !important;

    /* Ensure transparency */
    opacity: 1 !important;

    /* Remove any inherited backgrounds */
    background-blend-mode: normal !important;
}

/* Force transparent background for school logo with higher specificity */
.logo-container .school-logo-container img.school-logo,
.logo-container .flex-shrink-0 img.school-logo,
div.school-logo-container img.school-logo {
    background: transparent !important;
    background-color: rgba(0, 0, 0, 0) !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Remove any Tailwind CSS backgrounds that might be applied */
.school-logo-container,
.school-logo-container img,
img.school-logo {
    --tw-bg-opacity: 0 !important;
    --tw-shadow: none !important;
    --tw-ring-shadow: none !important;
    --tw-drop-shadow: none !important;
}

/* Alternative approach - if the background is part of the image file */
.school-logo {
    /* Try to make white/light backgrounds transparent */
    filter: contrast(1.2) brightness(1.1) !important;

    /* Advanced technique to remove white background from image */
    mix-blend-mode: darken !important;

    /* Alternative: Use CSS mask to remove white areas */
    -webkit-mask:
        radial-gradient(circle, transparent 0%, black 1%),
        linear-gradient(transparent, transparent);
    -webkit-mask-composite: subtract;
    mask:
        radial-gradient(circle, transparent 0%, black 1%),
        linear-gradient(transparent, transparent);
    mask-composite: subtract;
}

/* Try different blend modes for removing white background */
.school-logo.remove-white-bg {
    mix-blend-mode: multiply !important;
    filter: contrast(1.5) brightness(0.9) !important;
}

/* CSS-only approach to remove white background */
.school-logo.transparent-white {
    background: transparent !important;
    /* This creates a mask that makes white pixels transparent */
    filter:
        contrast(1.2)
        brightness(1.1)
        drop-shadow(0 0 0 transparent) !important;

    /* Alternative using backdrop-filter */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Last resort - hide any background that might appear */
.school-logo-container::before,
.school-logo-container::after {
    display: none !important;
    content: none !important;
}

/* Ultimate solution - Force complete transparency */
.school-logo-container {
    position: relative !important;
    background: none !important;
    background-color: transparent !important;
    overflow: visible !important;
}

.school-logo-container img.school-logo {
    position: relative !important;
    z-index: 10 !important;
    background: none !important;
    background-color: transparent !important;

    /* Remove white background using advanced CSS */
    filter:
        contrast(1.1)
        brightness(1.05)
        saturate(1.1) !important;

    /* Force blend mode to remove white */
    mix-blend-mode: multiply !important;

    /* Ensure no box model backgrounds */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    /* Remove any possible pseudo-element backgrounds */
    isolation: isolate !important;
}

/* Remove any inherited styles from parent containers */
.logo-container .school-logo-container,
.logo-container .flex-shrink-0:last-child {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

@media (max-width: 640px) {
    .logo-container {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Header Text */
.header-text {
    text-align: center;
    margin-bottom: 3rem;
}

.header-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.header-text h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.header-text h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.header-text .subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d4ed8;
    margin-bottom: 0.25rem;
}

.header-text .year {
    font-size: 1.125rem;
    color: #6b7280;
}

@media (max-width: 640px) {
    .header-text h1 {
        font-size: 1.125rem;
    }
    
    .header-text h2 {
        font-size: 1rem;
    }
    
    .header-text h3 {
        font-size: 1.5rem;
    }
    
    .header-text .subtitle {
        font-size: 1.125rem;
    }
    
    .header-text .year {
        font-size: 1rem;
    }
}

/* Form Section */
.form-section {
    max-width: 28rem;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Information Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.info-content h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.info-content p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.loading-content {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    margin: 1rem;
    text-align: center;
}

/* Animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-medium {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.border-soft {
    border: 1px solid rgba(229, 231, 235, 0.8);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
}
