/* ========== 기본 셋팅 ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f6f8;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
}

#content-alert{margin: auto auto; border: none;padding: 0;width:90%; max-width:500px; box-shadow: 0 12px 40px rgba(0,0,0,.2);background-image:linear-gradient(rgba(158,60,31,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(158,60,31,.12) 1px,transparent 1px);background-size:48px 48px;}
#content-alert::backdrop{border:none;border-radius:14px;padding:0;width:100%;box-shadow: 0 12px 40px rgba(0,0,0,.2);background-color:rgba(0,0,0,.5);}
#content-alert #dlg-body { padding: 30px; text-align: center; }
#content-alert .success::before {content: ''; position: absolute; width:80px; height:80px; left:50%; top:20px; transform: translateX(-50%);background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none'%3E%3Ccircle cx='40' cy='40' r='32' fill='%23059669'/%3E%3Cpath d='M26 40L35 49L54 30' stroke='white' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat;}
#content-alert .error::before {content: ''; position: absolute; width:80px; height:80px; left:50%; top:20px; transform: translateX(-50%);background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none'%3E%3Ccircle cx='40' cy='40' r='32' fill='%23dc2626'/%3E%3Cpath d='M30 30L50 50M50 30L30 50' stroke='white' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat;}
#content-alert #dlg-msg  { font-size: 16px; line-height: 23px; white-space: pre-line; margin:80px 0 25px;font-family: "paperlogy"; font-weight: 500;letter-spacing: 0.5px;}
#content-alert #dlg-btn { width: 100%;padding: 8px;border: none;border-top: 1px solid #eee;font-size: 18px;font-weight: 600;background: #1C5FB7 ;color: #fff;cursor: pointer;text-align: center;}
#content-alert .error #dlg-btn {background: #DC2626}

/* ========== 전체 컨테이너 (2단 분할) ========== */
.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ========== 좌측 비주얼 패널 ========== */
.visual-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #7A2E17 0%, #9E3C1F 50%, #B84A28 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px;
    color: #fff;
}

/* 배경 그리드 패턴 */
.visual-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 100%);
}

/* 떠다니는 글로우 원 */
.visual-panel::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    top: -120px; right: -120px;
    border-radius: 50%;
    pointer-events: none;
}

/* 로고 영역 */
.visual-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.visual-logo-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* 중앙 메인 카피 */
.visual-main {
    position: relative;
    z-index: 2;
    max-width: 480px;
}
.visual-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}
.visual-headline {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}
.visual-headline em {
    font-style: normal;
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    animation: typing 5s steps(31) infinite;
}
.visual-subtext {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
}

/* 서비스 미리보기 카드 */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.svc-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 16px 14px;
    transition: all 0.3s;
    cursor: pointer;
}
.svc-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}
.svc-icon {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}
.svc-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}
.svc-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* 하단 정보 */
.visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.visual-footer .stats {
    display: flex;
    gap: 24px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.stat-label {
    font-size: 11px;
}

/* ========== 우측 로그인 패널 ========== */
.form-panel {
    width: 480px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px;
    position: relative;
}
.form-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, #6B2515 0%, #9E3C1F 50%, #B8611F 100%);
}

.form-header {
    margin-bottom: 36px;
}
.form-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}
.form-subtitle {
    font-size: 14px;
    color: #666;
}

/* 안내 박스 */
.info-box {
    background: linear-gradient(135deg, #fdf2ee 0%, #fef6f3 100%);
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 28px;
    font-size: 13px;
    color: #7A2E17;
    line-height: 1.6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.info-box .info-icon {
    flex-shrink: 0;
    width: 20px; height: 20px;
    background: #7A2E17;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

/* 입력 필드 */
.form-field {
    margin-bottom: 16px;
    position: relative;
}
.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.input-wrap {
    position: relative;
}
.input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border: 1.5px solid #e6e6e6;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fafbfc;
    transition: all 0.2s;
    color: #1a1a1a;
}
.input-wrap input:focus {
    outline: none;
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.input-wrap input::placeholder { color: #aaa; }
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888;
    pointer-events: none;
}

/* 로그인 옵션 */
.form-options {
    display: flex;
    justify-content: end;
    align-items: center;
    margin: 18px 0 24px;
    font-size: 13px;
}
.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #555;
    user-select: none;
}
.checkbox-wrap input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}
.help-links {
    display: flex;
    gap: 14px;
}
.help-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    position: relative;
    transition: color 0.15s;
}
.help-links a:hover { color: #4f46e5; }
.help-links a + a::before {
    content: '';
    position: absolute;
    left: -8px; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 11px;
    background: #ddd;
}

/* 로그인 버튼 */
.login-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #7A2E17 0%, #9E3C1F 50%, #B84A28 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.2px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}
.login-btn:active {
    transform: translateY(0);
}

/* 매뉴얼 버튼 */
.manual-btn {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    float: left;
}


.manual-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #fafbff;
}

/* 하단 안내 */
.form-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed #ececec;
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.7;
}
.form-footer strong {
    color: #555;
    font-weight: 600;
}

/* ========== 반응형 ========== */
@media (max-width: 1024px) {
    body { overflow: auto; }
    .login-wrapper { display: block; }
    .visual-panel {
        height: 100vh;
        padding: 40px 32px;
    }
    .visual-headline { font-size: 32px; }
    .form-panel {
        width: 100%;
        padding: 40px 24px;
        height: 100vh;
    }
    .service-cards { gap: 10px; }
}
@media (max-width: 480px) {
    .visual-headline { font-size: 26px; }
    .service-cards { grid-template-columns: repeat(3, 1fr); }
    .svc-card { padding: 12px 8px; }
    .svc-name { font-size: 12px; }
    .svc-desc { display: none; }
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .visual-logo {
	    font-size: 15px;
	}
}
/* ===== 타이핑 효과 ===== */
.visual-headline .typing-line {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    max-width: 0;
    border-right: 3px solid #fde68a;
    animation:
        typing 3s steps(20, end) 0.4s infinite,
        blink 0.75s step-end infinite 0.4s;
}

@keyframes typing {
    0% { max-width: 0; }
    50%   { max-width: 12em; }
    100%   { max-width: 0; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ========== 진입 애니메이션 ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header { animation: fadeUp 0.5s ease-out; }
.info-box { animation: fadeUp 0.5s ease-out 0.1s both; }
.form-field:nth-of-type(1) { animation: fadeUp 0.5s ease-out 0.2s both; }
.form-field:nth-of-type(2) { animation: fadeUp 0.5s ease-out 0.3s both; }
.form-options { animation: fadeUp 0.5s ease-out 0.4s both; }
.login-btn { animation: fadeUp 0.5s ease-out 0.5s both; }
.manual-btn { animation: fadeUp 0.5s ease-out 0.55s both; }