/* Splash Screens CSS - Extracted from index.html */
/* Wellnecity, Phantom Engine, and Workflow Studio splash screens */

/* Splash 1 - Wellnecity Style */
#splash1 {
    background: linear-gradient(135deg, #7B68EE 0%, #6B46C1 50%, #9B88FF 100%);
    position: relative;
    overflow: hidden;
}

#splash1::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 150%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(25deg);
}

.wellnecity-logo {
    font-size: 5rem;
    font-weight: 300;
    color: white;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.wellnecity-tagline {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.5rem;
    letter-spacing: 0.15em;
}

.wellnecity-dot {
    display: inline-block;
    width: 0.3em;
    height: 0.3em;
    background: white;
    border-radius: 50%;
    margin: 0 0.2em;
    vertical-align: middle;
}

/* Splash 2 - Phantom Engine (90s style) */
#splash2 {
    background: #000;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.phantom-logo {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 0.2rem;
    animation: glitch 2s infinite;
    text-shadow: 
        2px 2px 0 #00ffff,
        -2px -2px 0 #ff00ff;
}

.phantom-text {
    font-size: 1.5rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s;
}

.phantom-subtitle {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 1s;
    color: #888;
}

/* CRT Effect for Phantom Engine */
.crt::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 2;
}

.crt::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

/* Scanlines effect */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.scanlines::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 0, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: scanlines 8s linear infinite;
}

/* Splash 3 - Workflow Studio (matches app theme) */
#splash3 {
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
}

.studio-header {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.studio-logo {
    font-size: 3.5rem;
    font-weight: 400;
    color: #2c3e50;
    opacity: 0;
    animation: slideUp 1s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    text-align: center;
}

body.dark-theme .studio-logo {
    color: #ffffff;
}

.studio-icon {
    font-size: 3rem;
}

.studio-version {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: slideUp 1s forwards;
    animation-delay: 0.3s;
}

.studio-copyright {
    position: absolute;
    bottom: 40px;
    /* left: 50%; */
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.6s;
}
/* =============================================
   Login Form (Title Screen) Styles
   ============================================= */

.login-form {
    position: absolute;
    top: 50%;
    /* left: 50%; */
    transform: translate(-50%, -50%);
    width: 320px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 1.2s;
    pointer-events: none;  /* Disable clicks during animation */
}

/* Enable clicks after animation completes (1.2s delay + 0.6s animation = 1.8s) */
.login-form.ready {
    pointer-events: auto;
}

.login-input-group {
    margin-bottom: 16px;
}

.login-input-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-input-group input:focus {
    outline: none;
    border-color: #3498db;
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.login-input-group input::placeholder {
    color: var(--text-secondary);
}

.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

.options-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.options-button:hover {
    background: var(--bg-secondary);
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
}

.options-icon {
    font-size: 16px;
}