/* assets/key.css - 現代風登入頁面樣式 */

@import url('./assets/fonts/nunito.css');


:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --bg-gradient: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 背景裝飾圓形 (增加層次感) */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

body::before {
    width: 300px;
    height: 300px;
    background: linear-gradient(to right, #a78bfa, #3b82f6);
    top: -50px;
    left: -50px;
    opacity: 0.2;
    filter: blur(60px);
}

body::after {
    width: 250px;
    height: 250px;
    background: linear-gradient(to left, #f472b6, #fbbf24);
    bottom: -50px;
    right: -50px;
    opacity: 0.15;
    filter: blur(60px);
}

.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.login-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease;
}

.icon-circle {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

h3 {
    margin: 0 0 0.5rem;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
}

p.hint {
    margin: 0 0 2rem;
    color: var(--text-sub);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid transparent;
    background: #f9fafb;
    border-radius: 12px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
    color: var(--text-main);
    letter-spacing: 2px;
}

input[type="password"]:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

input[type="password"]::placeholder {
    color: #9ca3af;
    letter-spacing: normal;
    font-size: 0.95rem;
}

.button {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.button:active {
    transform: translateY(0);
}

.message-box.error {
    background: #fef2f2;
    color: #ef4444;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #fee2e2;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}