* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a0a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease-out;
}

.loading-text {
    font-size: 18px;
    color: #00f0ff;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeInOut 2s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(0, 240, 255, 0.8),
        0 0 20px rgba(255, 16, 240, 0.4);
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Terminal Display Container */
.terminal-display {
    position: absolute;
    top: calc(100vh / 6);
    left: calc(100vw / 6);
    width: calc(100vw / 3);
    height: calc(100vh / 3);
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Retro Terminal Card */
.retro-terminal-card {
    width: 100%;
    height: 100%;
    max-width: 100%;
    background: #0a0a0a;
    border: 2px solid #00f0ff;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 40px rgba(255, 16, 240, 0.2),
        inset 0 0 20px rgba(0, 240, 255, 0.05);
    overflow: hidden;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: rgba(0, 240, 255, 0.1);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 16, 240, 0.4);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 4px currentColor;
}

.dot-red {
    background: #ff5f56;
    color: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
    color: #ffbd2e;
}

.dot-green {
    background: #27c93f;
    color: #27c93f;
}

.terminal-title {
    color: #00f0ff;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 
        0 0 10px rgba(0, 240, 255, 0.8),
        0 0 20px rgba(255, 16, 240, 0.4);
}

.terminal-body {
    padding: 16px;
    flex: 1;
    background: #0a0a0a;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.terminal-output {
    color: #00f0ff;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 
        0 0 5px rgba(0, 240, 255, 0.6),
        0 0 10px rgba(255, 16, 240, 0.3);
    flex: 1;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.terminal-prompt {
    color: #ff10f0;
    font-weight: bold;
    user-select: none;
    text-shadow: 0 0 8px rgba(255, 16, 240, 0.8);
}

.terminal-text {
    color: #00f0ff;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-shadow: 
        0 0 5px rgba(0, 240, 255, 0.6),
        0 0 10px rgba(255, 16, 240, 0.2);
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: #ff10f0;
    animation: blink 1s step-end infinite;
    box-shadow: 
        0 0 8px rgba(255, 16, 240, 1),
        0 0 16px rgba(255, 16, 240, 0.6);
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Scanlines effect for extra retro feel */
.retro-terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 240, 255, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(255, 16, 240, 0.03) 3px
    );
    pointer-events: none;
    z-index: 1;
}

.terminal-body {
    position: relative;
    z-index: 2;
}

/* Main Content */
.main-content {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a0a;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#main-image {
    width: 95%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in;
    position: relative;
    z-index: 1;
}

#main-image.loaded {
    opacity: 1;
}

/* Gradient fade overlays to extend image colors to viewport edges */
.gradient-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.gradient-overlay.active {
    opacity: 1;
}

.gradient-left {
    left: 0;
}

.gradient-right {
    right: 0;
}


/* Surname Form */
.surname-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a0a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.surname-form-content {
    text-align: center;
    padding: 50px 40px;
    border: 2px solid #00f0ff;
    border-radius: 15px;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 40px rgba(0, 240, 255, 0.4),
        0 0 60px rgba(255, 16, 240, 0.2);
    max-width: 600px;
    width: 90%;
}

.surname-form-content h2 {
    color: #00f0ff;
    margin-bottom: 15px;
    font-size: 2rem;
    text-shadow: 
        0 0 10px rgba(0, 240, 255, 0.8),
        0 0 20px rgba(255, 16, 240, 0.4);
    font-weight: 300;
    letter-spacing: 2px;
}

.surname-prompt {
    color: #ff10f0;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 0 8px rgba(255, 16, 240, 0.6);
}

#surname-input-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#surname-input {
    padding: 15px 20px;
    font-size: 1.1rem;
    background: rgba(20, 20, 30, 0.8);
    border: 2px solid rgba(0, 240, 255, 0.4);
    border-radius: 8px;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

#surname-input:focus {
    border-color: #ff10f0;
    box-shadow: 
        0 0 15px rgba(255, 16, 240, 0.5),
        0 0 30px rgba(0, 240, 255, 0.3);
    background: rgba(20, 20, 30, 0.9);
}

#surname-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#surname-input-form button {
    padding: 15px 30px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #00f0ff 0%, #ff10f0 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(255, 16, 240, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#surname-input-form button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.7),
        0 0 50px rgba(255, 16, 240, 0.5);
    background: linear-gradient(135deg, #10ffff 0%, #ff20ff 100%);
}

#surname-input-form button:active {
    transform: translateY(0);
}

.surname-error {
    color: #ff6666;
    font-size: 0.95rem;
    margin-top: 15px;
    text-shadow: 0 0 5px rgba(255, 102, 102, 0.5);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Unauthorized */
.unauthorized {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.unauthorized-content {
    text-align: center;
    padding: 40px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    background: rgba(20, 0, 0, 0.5);
}

.unauthorized-content h2 {
    color: #ff4444;
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.unauthorized-content p {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-display {
        top: 5%;
        left: 5%;
        width: 90%;
        height: 40%;
    }
    
    .terminal-output {
        font-size: 12px;
    }
    
    .terminal-title {
        font-size: 10px;
    }
}

