* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    padding: 20px;
}

.auth-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.75rem;
    font-weight: 600;
}

.error-message {
    color: #dc3545;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 0.9rem;
}

input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
}

button {
    width: 100%;
    padding: 14px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
    touch-action: manipulation;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    background-color: #004085;
}

/* 모바일 스타일 */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .auth-container {
        padding: 24px 20px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    input[type="password"] {
        padding: 16px;
        font-size: 16px; /* iOS 자동 줌 방지 */
    }
    
    button {
        padding: 16px;
        font-size: 16px;
    }
}

/* 작은 모바일 화면 */
@media (max-width: 320px) {
    h1 {
        font-size: 1.25rem;
    }
}