* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu Mono', monospace;
    background-color: #001000;
    color: #007400;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.terminal-container {
    width: 90%;
    max-width: 800px;
    height: 90vh;
    background-color: #000200;
    border: 2px solid #007400;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 116, 0, 0.3);
}

.terminal-header {
    background-color: #007400;
    color: #000200;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
}

.terminal-title {
    font-size: 16px;
    letter-spacing: 2px;
}

.terminal-version {
    font-size: 12px;
}

.terminal-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 20px;
}

.primary-text {
    color: #007400;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 116, 0, 0.5);
    letter-spacing: 1px;
}

.secondary-text {
    color: #005a00;
    font-size: 18px;
    letter-spacing: 1px;
}

.password-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.password-display {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-label {
    color: #007400;
    font-weight: bold;
}

.password-input {
    color: #007400;
    min-width: 200px;
    font-family: 'Ubuntu Mono', monospace;
    letter-spacing: 3px;
}

.cursor {
    color: #007400;
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.keypad {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
    max-width: 300px;
}

.keypad-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.key-button {
    width: 80px;
    height: 60px;
    background-color: #000200;
    border: 2px solid #007400;
    color: #007400;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    text-transform: uppercase;
}

.key-button:hover {
    background-color: #007400;
    color: #000200;
    box-shadow: 0 0 15px rgba(0, 116, 0, 0.6);
}

.key-button:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(0, 116, 0, 0.8);
}

.clear-btn, .enter-btn {
    font-size: 14px;
}

.status-line {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #005a00;
}

.terminal-time {
    font-family: 'Ubuntu Mono', monospace;
}

.terminal-footer {
    background-color: #005a00;
    color: #000200;
    padding: 8px 20px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .terminal-container {
        width: 95%;
        height: 95vh;
    }
    
    .terminal-content {
        padding: 20px;
        gap: 20px;
    }
    
    .primary-text {
        font-size: 20px;
    }
    
    .secondary-text {
        font-size: 16px;
    }
    
    .key-button {
        width: 70px;
        height: 50px;
        font-size: 16px;
    }
    
    .keypad {
        gap: 10px;
    }
    
    .keypad-row {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .terminal-header {
        padding: 8px 15px;
    }
    
    .terminal-title {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .terminal-version {
        font-size: 10px;
    }
    
    .primary-text {
        font-size: 18px;
    }
    
    .secondary-text {
        font-size: 14px;
    }
    
    .key-button {
        width: 60px;
        height: 45px;
        font-size: 14px;
    }
    
    .password-display {
        font-size: 16px;
    }
}
