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

body {
    font-family: 'Segoe UI', 'Microsoft JhengHei', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 500px;
    width: 100%;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.result-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    text-align: center;
}

.result-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.taunt-message {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 10px;
    color: #dc3545;
}

/* 成功畫面樣式 */
.success-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.success-card h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2.2em;
}

.success-message {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.5;
}

.key-container {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.key-label {
    display: block;
    font-size: 1.1em;
    color: #8a6d00;
    margin-bottom: 8px;
    font-weight: 500;
}

.key-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #745f00;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.back-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

.back-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .login-card {
        padding: 25px;
    }
    
    .success-card {
        padding: 30px 20px;
    }
    
    .success-icon {
        font-size: 60px;
    }
    
    .success-card h1 {
        font-size: 1.8em;
    }
    
    .key-value {
        font-size: 2em;
    }
}