/* css/style.css */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
    --primary-color: #6C5CE7;
    --primary-light: #a29bfe;
    --secondary-color: #00cec9;
    --accent-color: #fd79a8;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(12px);
}

body {
    font-family: 'Pretendard', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center; /* Center content vertically too */
    color: var(--text-dark);
}

/* Base Glass Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

/* Typography */
h1, h2, h3 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
    font-weight: 800;
}

h1 { font-size: 28px; text-align: center; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

/* Buttons */
.btn {
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #8e44ad);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
}

/* Modern Input Fields */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.spinner {
    width: 40px; height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Badge styles */
.badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
}
.badge-blue { background: #e3f2fd; color: #1e88e5; }
.badge-red { background: #ffebee; color: #e53935; } 
.badge-green { background: #e8f5e9; color: #43a047; }
