/* ============================================
   SPLASH SCREEN STYLES
   ============================================ */

/* Hide header and footer on splash screen */
nav,
.top-bar,
footer {
    display: none !important;
}

/* Override body for splash screen - needs full viewport height */
body {
    height: 100vh;
    overflow: hidden;
}

/* Adjust main container to fill screen */
#app-content {
    height: 100vh;
}

/* Reset and Base Styles */
.splash-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    box-sizing: border-box;
}

/* Animated Background Pattern */
.splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(12, 123, 147, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(12, 123, 147, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(12, 123, 147, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(12, 123, 147, 0.03) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% {
        background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    }
    100% {
        background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px;
    }
}

/* ============================================
   MAIN CONTENT SECTION
   ============================================ */

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-width: 600px;
    text-align: center;
    z-index: 1;
}

/* PRD Logo */
.brand-container {
    margin-bottom: 3rem;
    animation: fadeInScale 1.2s ease-out;
}

.prd-logo {
    width: 100%;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 8px 20px rgba(12, 123, 147, 0.2));
    }
}

/* Main Title */
.splash-title {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.splash-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #0C7B93;
    margin: 0.5rem 0 1.5rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

/* Tagline */
.splash-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #4a5568;
    margin: 1rem 0 2rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

.splash-loader {
    margin: 2rem 0;
    animation: fadeInUp 1s ease-out 1.1s backwards;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(12, 123, 147, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #0C7B93, transparent);
    animation: loaderSlide 2s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    background: #0C7B93;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ============================================
   CONTINUE BUTTON
   ============================================ */

.continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: #0C7B93;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(12, 123, 147, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 1.3s backwards;
    margin-top: 1.5rem;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 123, 147, 0.4);
    background: #1e3a5f;
    color: #ffffff;
}

.continue-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.continue-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.continue-btn:hover i {
    transform: translateX(4px);
}

/* ============================================
   FOOTER SECTION
   ============================================ */

.splash-footer {
    text-align: center;
    color: #718096;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    animation: fadeInUp 1s ease-out 1.5s backwards;
    z-index: 1;
}

.splash-footer p {
    margin: 0.25rem 0;
    letter-spacing: 0.5px;
}

.splash-footer .version {
    font-size: 0.75rem;
    color: #a0aec0;
}

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

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

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

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

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

@media (max-width: 768px) {
    .splash-screen {
        padding: 1.5rem;
    }

    .prd-logo {
        max-width: 600px;
    }

    .splash-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .splash-subtitle {
        font-size: 1.75rem;
        letter-spacing: 4px;
    }

    .splash-tagline {
        font-size: 0.85rem;
    }

    .continue-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .splash-footer {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .prd-logo {
        max-width: 450px;
    }

    .splash-title {
        font-size: 1.5rem;
    }

    .splash-subtitle {
        font-size: 1.25rem;
        letter-spacing: 2px;
    }

    .loader-bar {
        width: 150px;
    }

    .continue-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ============================================
   AUTHORIZATION MODAL
   ============================================ */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.auth-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    text-align: center;
}

.auth-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0C7B93 0%, #1e3a5f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.auth-modal-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.auth-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 1rem;
}

.auth-modal-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 1rem;
    text-align: left;
}

.auth-modal-text:last-of-type {
    margin-bottom: 2rem;
}

.auth-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.auth-modal-btn-primary {
    background: linear-gradient(135deg, #0C7B93 0%, #1e3a5f 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(12, 123, 147, 0.3);
}

.auth-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 123, 147, 0.4);
}

.auth-modal-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.auth-modal-btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

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

/* Modal Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Modal */
@media (max-width: 480px) {
    .auth-modal-content {
        padding: 2rem 1.5rem;
    }

    .auth-modal-title {
        font-size: 1.5rem;
    }

    .auth-modal-text {
        font-size: 0.95rem;
    }

    .auth-modal-actions {
        flex-direction: column;
    }

    .auth-modal-btn {
        width: 100%;
    }
}
