/* login.css - AIR-HP 로그인 (스페이스엣지 브랜드)
   브랜드 히어로 언어: primary 풀블리드 배경 + 흰 카드 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

:root {
    --brand-primary: #2D7EBD;
    --brand-primary-hover: #2464A0;
    --brand-primary-light: #E8F4FD;
    --brand-text: #2c3e50;
    --brand-muted: #6c757d;
    --brand-border: #e9ecef;
    --brand-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Malgun Gothic', sans-serif;
    color: var(--brand-text);
    background-color: var(--brand-primary);
    background-image:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 12% 88%, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0) 46%);
    background-attachment: fixed;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
}

/* =========================
   CARD
   ========================= */
.form {
    background: var(--brand-white);
    border-radius: 16px;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    padding: 40px;
    width: 100%;
    max-width: 380px;
}

.login-brand {
    text-align: center;
    margin-bottom: 24px;
}

/* 사이트마다 로고 비율이 크게 다르다 (가로형 워드마크 vs 정사각형 심볼).
   높이/너비 상한을 함께 걸어 어느 쪽이든 카드 안에서 비슷한 무게로 보이게 한다. */
.login-logo {
    max-height: 44px;
    max-width: 190px;
    height: auto;
    width: auto;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--brand-text);
    text-align: center;
    margin: 0 0 6px;
}

.login-product-logo {
    display: block;
    height: 34px;
    width: auto;
    margin: 4px auto 0;
}

.login-subtitle {
    font-size: 0.875rem;
    color: var(--brand-muted);
    text-align: center;
    margin: 0 0 28px;
}

/* =========================
   FORM
   ========================= */
.field {
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 12px 14px;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    color: var(--brand-text);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
    color: #adb5bd;
}

input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.cf-turnstile {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.submit-action {
    width: 100%;
    padding: 13px;
    background: var(--brand-primary);
    border: none;
    border-radius: 8px;
    color: var(--brand-white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-action:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.submit-action:focus-visible {
    outline: 3px solid var(--brand-primary-light);
    outline-offset: 2px;
}

/* =========================
   OTP REVEAL
   ========================= */
#otp-container {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }

    to {
        opacity: 1;
        max-height: 120px;
    }
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 480px) {
    .login-page {
        padding: 16px;
    }

    .form {
        padding: 28px 22px;
    }

    .login-title {
        font-size: 1.5rem;
    }
}
