/* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #131313;
    color: #e5e2e1;
    font-family: 'Inter', sans-serif;
}

.center-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min-content; /* 뷰포트 높이 대신 내용에 맞춤 */
    height: 100vh;
}

/* 폰트 스타일 */
.font-manrope { font-family: 'Manrope', sans-serif; }

/* 레이아웃 래퍼 */
.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 헤더 영역 */
.auth-header { text-align: center; margin-bottom: 40px; }
.logo-icon { color: #a3c9ff; font-size: 40px; margin-bottom: 8px; }
.title { font-size: 24px; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 4px; }
.subtitle { font-size: 10px; letter-spacing: 0.2em; color: #c0c7d5; text-transform: uppercase; }
.auth-header a{display:block;}
.auth-header a img{width:270px;}
/* 카드 공통 스타일 */
.auth-box {
    width: 100%;
    background-color: #1c1b1b;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #353534;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.box-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.box-desc { font-size: 14px; color: #c0c7d5; margin-bottom: 32px; }

/* 폼 요소 스타일 */
.auth-form { display: flex; flex-direction: column; gap: 24px; }
.signup-grid { gap: 16px; } /* 회원가입은 조금 더 촘촘하게 */

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #c0c7d5;
    margin-bottom: 8px;
}

input, select {
    width: 100%;
    background-color: #131313;
    border: 1px solid #353534;
    color: #e5e2e1;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
    border-color: #a3c9ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(163, 201, 255, 0.1);
}

/* 버튼 스타일 */
.gradient-btn {
    width: 100%;
    background: linear-gradient(135deg, #a3c9ff 0%, #1493ff 100%);
    color: #002a51;
    font-weight: 700;
    padding: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s;
}

.gradient-btn:hover { opacity: 0.9; }

/* 하단 링크 */
.form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #c0c7d5;
}

.link-text {
    color: #a3c9ff;
    cursor: pointer;
    margin-left: 4px;
}

.link-text:hover { text-decoration: underline; }

/* 유틸리티 클래스 */
.hidden { display: none; }
/* ── imgble(그누보드 연동) 로그인 화면 추가 스타일 ── */
.auth-notice {
    background: rgba(163, 201, 255, 0.08);
    border: 1px solid rgba(163, 201, 255, 0.25);
    color: #a3c9ff;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* 로그인 상태 유지 체크박스 (전역 input 스타일의 width:100% 를 덮어쓴다) */
.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #c0c7d5;
    cursor: pointer;
}
.auth-check input[type="checkbox"] {
    width: auto;
    padding: 0;
    accent-color: #1493ff;
}

a.link-text { text-decoration: none; }
a.link-text:hover { text-decoration: underline; }
.form-footer + .form-footer { margin-top: 10px; }

/* 모바일: 안쪽 여백을 줄이고 글자가 잘리지 않게 */
@media (max-width: 480px) {
    .auth-wrapper { padding: 16px; }
    .auth-header { margin-bottom: 24px; }
    .auth-box { padding: 26px 20px; }
}
