/* ===================================
   WCSH SBFR Report Access System
   Main Stylesheet
   =================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* ===================================
   HOMEPAGE STYLES
   =================================== */

.homepage {
    background: linear-gradient(135deg, #F97316 0%, #FB923C 25%, #3B82F6 75%, #1E40AF 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    width: 100%;
}

/* Logo Section */
.logo-container {
    margin-bottom: 40px;
}

.logo-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

/* Title Section */
.title-section {
    margin-bottom: 50px;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    letter-spacing: 1px;
}

/* Entry Section */
.entry-section {
    margin-bottom: 60px;
}

.password-container {
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 3px solid white;
    border-radius: 50px;
    outline: none;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.password-input:focus {
    border-color: #1E40AF;
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.4);
    transform: scale(1.02);
}

.error-message {
    color: #FEE2E2;
    background: rgba(220, 38, 38, 0.8);
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    font-weight: 600;
    display: none;
}

.error-message.show {
    display: block;
}

.enter-button {
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.enter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 64, 175, 0.5);
}

.enter-button:active {
    transform: translateY(-1px);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}

.footer p {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===================================
   PORTAL PAGE STYLES
   =================================== */

.portal-page {
    background: linear-gradient(135deg, #F97316 0%, #FB923C 20%, #3B82F6 80%, #1E40AF 100%);
    min-height: 100vh;
    padding: 40px 20px 100px 20px;
}

.portal-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    margin-bottom: 60px;
}

.report-button {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 35px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.report-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.report-button:hover::before {
    left: 100%;
}

.report-button:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 35px rgba(30, 64, 175, 0.3);
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.button-icon {
    font-size: 3rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.button-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E40AF;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo-circle {
        width: 160px;
        height: 160px;
    }

    .logo-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }

    .welcome-title {
        font-size: 1.6rem;
    }

    .password-input {
        font-size: 1rem;
    }

    .enter-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
}