@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Orbitron:wght@700&family=Noto+Sans+KR:wght@400;700&display=swap');

:root {
    --primary: #4facfe;
    --accent: #ffd700;
    --bg-overlay: rgba(255, 255, 255, 0.4);
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #2c3e50;
    --text-muted: #576574;
    --error: #ee5253;
    --success: #10ac84;
    --border: rgba(255, 255, 255, 0.5);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    background-color: #bee3f8;
    background-image: url('bg_main.jpg');
    /* RELLION Sky Image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    overflow-x: hidden;
}



.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.8s ease-out;
}

header {
    display: flex;
    justify-content: flex-end;
}

.language-selector {
    position: relative;
}

.lang-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    width: 200px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.lang-dropdown.hidden {
    display: none;
}

.lang-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.lang-item:hover {
    background: #f0f7ff;
    color: var(--primary);
}

/* Bright Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--border);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    letter-spacing: 2px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-weight: 600;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 1rem;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.1);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.captcha-svg {
    flex-grow: 1;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.captcha-svg svg {
    border-radius: 8px;
}

.icon-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.icon-btn:hover {
    color: var(--primary);
    background: #f1f5f9;
}

.submit-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 15px rgba(58, 123, 213, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(58, 123, 213, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

.message-box {
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.message-box.success {
    background: #d1fae5;
    color: var(--success);
    border: 1px solid #10ac8444;
}

.message-box.error {
    background: #fee2e2;
    color: var(--error);
    border: 1px solid #ee525344;
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-small {
    width: 24px;
    height: 24px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -10px;
    margin-top: -10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}