/*====================== 공통영역 =========================*/

body{ margin: 0;}

#header{
	width: 100%;
	height: 80px;
	margin: 0 auto;
	background: #8D1A2C;
    display: table;
}

#header .header_logo{
    display: table-cell; 
    vertical-align: middle;
    margin: 0 auto;
    width: 520px;
    text-align:center;
}

#login_wapper 	{
    top:50px;
    text-align: center;
	width: 520px;	
	margin: 0 auto;
	font-family: Tahoma,Geneva,sans-serif;
    font-size: 14px;
}

#login_wapper .login{
	display:block;
    margin:0 auto;
    padding: 20px 30px;
    margin-top: 0;
    border: 1px solid #ccc;
    border-top: none; /* 탭과 맞물리도록 상단 테두리 제거 */
}

#login_wapper .login:after{ content:''; display:block; clear:both; }

#login_wapper .login_title {
	margin: 50px 0 20px 0;
	color:#000000;
    font-family: Pretendard Variable;
    font-size: 32px;
    font-weight: 700;
    font-style: Bold;
    line-height: 140%;
}

/* 탭 영역 */
#login_wapper .login_tabs{
	display: flex;
	gap: 0;
	justify-content: stretch;
	align-items: stretch;
	margin: 10px 0 0 0; /* 카드에 바로 붙도록 하단 마진 제거 */
	padding: 0;
}

#login_wapper .login_tabs button{
	flex: 1;
	height: 58px;
	border: 1px solid #ccc;
	border-right: none;
	border-bottom: none; /* 카드와 연결 */
	background: #f7f7f7;
	font-size: 16px;
    font-family: Pretendard Variable;
	cursor: pointer;
}
#login_wapper .login_tabs button:last-child{
	border-right: 1px solid #ccc;
}
#login_wapper .login_tabs button.active{
	background: #C20224; /* 브랜드 컬러 */
	color: #fff;
	border-color: #C20224;
	border-bottom: none;
	font-weight: 600;
}

#login_wapper .tab_content{ display:none; }
#login_wapper .tab_content.active{ display:block; }
#login_wapper .pki_help_btn{ margin-top:10px; display:inline-block; font-size:13px; }
#login_wapper .pki_help_btn a{ color:#8D1A2C; text-decoration:underline; }

#login_wapper .login_user {
    width: 458px;
    margin: 10px 0px;
    margin-bottom: 20px;
	float:left;	
}

#login_wapper .login_user .title{
	float:left;
	display: block;
	width: 80px;
	padding-top: 10px;
	padding-bottom: 5px;
}

#login_wapper .login_user .box{
	display: block;
	float:left;
	width:458px;
    border:1px solid #ccc;
	background: #fff;
}

#login_wapper .login_user .box #login_user_type{
    width: 100%;
    height: 50px;
    border: 0px;
    font-size : 16px;
    font-family: Tahoma, Geneva, sans-serif;
}

#login_wapper .login_user .box input{
	border: 0px solid #c0c0c0;
	padding: 7px;
	width: 444px;
    height:34px;
	font-size:16px; /* iOS 에서 박스를 선택했을 때 zoom 되지 않으려면 font-size가 16px 이거나 1em 이어야함. */
	font-family: Tahoma,Geneva,sans-serif;
}

#login_wapper .login_user .select_user_org{
    width: 458px;
    height: 48px;
    font-size: 16px;
    padding: 7px;
}

#login_wapper .div_line{
    width: 458px;
    border: 1px solid #ccc;
    float: left;
    margin: 10px 0 20px 0;
    border-bottom: 0px;
    margin-left: 0px;
}

#login_wapper .login_btn {
    padding-left: 0px;
	float:left;
	text-align:center;
    margin-top: 7px;
	margin-bottom:20px;
	margin:10px 0px;
}

#login_wapper .login_btn a {
	width: 460px;
	display: block;
    text-align: center;
	background: #C20224;
	font-weight: 600;
	font-size: 18px;
	color: #ffffff;
	text-decoration: none;
	line-height: 60px;
    padding: 0;
	border: 0;
}

#login_wapper .login_btn a:hover{	
	color: #fff;
	text-decoration: none;
	background: #8D1A2C;
	border: 0;
}

#login_wapper table{
	width:100%;
	text-align:center;
}

#login_wapper .footer{
    display: block;
    float: left;
    height: 100px;
    width: 100%;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    color: #666666;
    font-size: 12px;
}

#login_wapper .footer .ft_top{
    margin-top: 24px;
}

#login_wapper .footer .ft_top a{
    text-decoration: none;
    color: #666666;
    font-size: 14px;
}


#login_wapper .footer .ft_top .priv_privacy{
    display: inline-block;  
    font-weight: 600;     
}

#login_wapper .footer .ft_top .priv_email{
    display: inline-block;  
}

/* 하단 안내 패널 */
#login_wapper .login_info_panel{
	width: 100%;
	max-width: 520px;
	margin: 20px auto 0 auto;
	padding: 20px 30px;
	border: 1px solid #ccc;
	background: #FAFAFA;
	box-sizing: border-box;
}

#login_wapper .login_info_panel .info_title{ color:#8D1A2C; font-weight:700; text-align:left; font-size:16px; margin-bottom:6px; font-family: Pretendard Variable; }
#login_wapper .login_info_panel .info_desc{ color:#000000; line-height: 1.6; text-align:left; margin-top:12px; font-family: Pretendard Variable; }
#login_wapper .login_info_panel .help_link{ display:inline-block; padding:2px 10px; border:1px solid #C20224; border-radius:14px; color:#C20224; text-decoration:none; margin-left:8px; font-weight:600; font-size:12px; }
#login_wapper .login_info_panel .help_link:hover{ background:#C20224; color:#fff; }
#login_wapper .pki_desc{ text-align:left; color:#999999; font-size:14px; font-family: Pretendard Variable; line-height:1.6; margin:18px 0 14px 0; }
#login_wapper #tab-content-pki .login_user{ margin: 25px 0px; }
#login_wapper .login_tabs button{ background:#fff; font-weight:700; font-family: Pretendard Variable; border:1px solid #ccc; }

/* 입력창 간격 및 버튼 위아래 간격 보정 */
#login_wapper .login_user { margin-bottom: 16px; }
#login_wapper .login_btn { margin-top: 14px; }

/* 푸터 안내 문구 타이포 */
#login_wapper .tab-info-footer .info_title{ font-weight: 600; margin-bottom: 6px; }
#login_wapper .tab-info-footer .info_desc{ color:#555; line-height: 1.6; }
#login_wapper .tab-info-footer .help_link{ color:#8D1A2C; font-size:12px; margin-left:8px; }

/* 푸터 레이아웃 여백 보정 */
#login_wapper .footer{ height: auto; padding: 10px 0 20px 0; }

/* 분리된 페이지 푸터 */
.login-page-footer{ width:520px; margin:20px auto; text-align:center; color:#666; font-size:12px; }
.login-page-footer .ft_top{ margin:12px 0; }
.login-page-footer .general_login{ position: relative; width:520px; margin:14px auto 0 auto; display:flex; align-items:center; justify-content:center; gap:12px; }
.login-page-footer .general_login:before,
.login-page-footer .general_login:after{
	content:'';
	display:block;
	flex:1;
	height:1px;
	background:#ccc;
    width:35%;
}
.login-page-footer .general_login .general-login-btn{
	display:inline-block;
	border:1px solid #ccc;
    padding: 10px 15px 10px 15px;
	background:#fff;
	color:#999999;
	text-decoration:none;
	font-size:13px;
    font-family: Pretendard Variable;
}
.login-page-footer .general_login .general-login-btn:hover{ background:#f7f7f7; color:#777; border-color:#d0d0d0; }

/* 학사행정웹서비스 버튼 */
#login_wapper .web_service {
    display:block;
    width:100%;
    margin-top: 24px;
    text-align:center;
}

#login_wapper .web_service a {
    display: inline-block;
    background:#fff;
    box-shadow:none;
    border:1px solid #ccc;
    padding:10px 15px;
    border-radius:0;
    color:#999999;
    text-decoration: none;
    font-size:13px;
    font-family: Pretendard Variable;
}

#login_wapper .web_service a:hover {
    background:#f7f7f7;
    color:#777;
    border:1px solid #d0d0d0;
}


/*------------------------  모바일사이즈 width: 600px 이하 -----------------------------*/


@media (max-width: 600px){
    
#header {
    height:50px;
}

#header .header_logo{
    height: 60px;
}

#header .header_logo img{
    height: 40px;
}
   
#login_wapper{
    width: 100%;
}

#login_wapper .login{
    padding: 0px 30px;
    margin-top: 0px;
    border: none;
}

#login_wapper .login_title {
    font-size: 26px;
	margin-bottom: 10px;
}

/* 모바일 탭 보정 */
#login_wapper .login_tabs{
	margin: 5px 0 0 0;
}
#login_wapper .login_tabs button{
	height: 46px;
	font-size: 15px;
}

#login_wapper .login_user {
    width: 100%;
    margin-top:0;
    margin-bottom:10px;
}

#login_wapper .login_user .title{
	width: 100%;
	padding-top: 10px;
	padding-bottom: 5px;
}

#login_wapper .login_user .box{
	width: 100%;    
}

#login_wapper .login_user .box #login_user_type{
    width: 100%;
    padding-left: 8px;
    height: 50px;
    border: 0px;
}

#login_wapper .login_user .box input{
	width: 100%;
	box-sizing: border-box;
}

#login_wapper .login_user .select_user_org{
    width: 100%;
}

#login_wapper .div_line{
    width: 100%;
    margin: 10px 0 10px 0;
    border-bottom: 0px;
    margin-left: 0px;
}

#login_wapper .login_btn {
	width:100%;
}

#login_wapper .login_btn a {
	width: 100%;
}

#login_wapper table{
	width:100%;
	text-align:center;
}

#login_wapper .footer{
  font-size: 11px;
  margin-top: 30px;
}

#login_wapper .login_info_panel{
	width: calc(100% - 60px);
}

/* 푸터 및 관리자 로그인 라인 반응형 */
.login-page-footer{ width: calc(100% - 60px); }
.login-page-footer .general_login{ width: 100%; }

/* 탭 컨테이너 안정화 */
#login_wapper .login_tabs{ display:flex; flex-wrap:nowrap; box-sizing:border-box; max-width:100%; }
#login_wapper .login_tabs button{ min-width:0; white-space:nowrap; }

/* 관리자 로그인 버튼 (푸터) - flex 라인 */
.login-page-footer .general_login{ display:flex; align-items:center; justify-content:center; gap:12px; width:100%; margin:14px auto 0 auto; }
.login-page-footer .general_login:before,
.login-page-footer .general_login:after{ content:""; flex:1; height:1px; background:#ccc; }
.login-page-footer .general_login .general-login-btn{ display:inline-block; border:1px solid #ccc; padding:10px 15px; background:#fff; color:#999999; text-decoration:none; font-size:13px; }
.login-page-footer .general_login .general-login-btn:hover{ background:#f7f7f7; color:#777; border-color:#d0d0d0; }

} /* END @media (max-width: 600px) */

@media (max-width: 600px){

/* 탭 버튼이 작은 화면에서 넘치지 않도록 */
#login_wapper .login_tabs{ padding:0 0; }
#login_wapper .login_tabs button{ height:44px; font-size:14px; }

/* 푸터 라인 반응형 */
.login-page-footer{ width: calc(100% - 60px); }
.login-page-footer .general_login{ width:100%; gap:8px; }

}



/*===   공인인증 모달창    ==*/
/* 관리자 로그인 버튼이 최상단으로 오지 않도록 조치해야함 */

#modalOverlay{
    width: 100% !important;
    height: 1000px !important;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
}

#modalContainer{
    position: fixed;
    width: 460px;
    left: 50%;
    margin-left: -230px;
    height: 540px;
    top: 50%;
    margin-top: -230px;
    overflow: hidden;
    border: none;
}

/* === DSU 디자인 오버라이드 (요구안 반영) === */
body{
	font-family: Pretendard Variable, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
#login_wapper{
	font-family: Pretendard Variable, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

#login_wapper .login_user .box input{
	height: 56px;
	padding: 0 14px;
	font-family: Pretendard Variable, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	width: 100%;
	box-sizing: border-box;
}

#login_wapper .login_info_panel .help_link{
	display: inline-block;
	height: 22px;
	line-height: 22px;
	width: 86px;
	text-align: center;
	padding: 0 10px;
}

#login_wapper .pki_desc{
	margin: 24px 0 14px 0;
}

/* 로그인 버튼 간격 보정 */
#login_wapper .login_btn{
	margin-top: 24px;
	margin-bottom: 20px;
}

/* === DSU 보정: 제목/도움말 정렬 === */
#login_wapper .login_info_panel .info_title{ display:flex; align-items:center; gap:8px; }
#login_wapper .login_info_panel .help_link{ height:22px; line-height:22px; width:86px; text-align:center; padding:0 10px; }
#login_wapper .pki_desc{ margin:24px 0 14px 0; }