/**
 * 중앙대 로그인 화면 스타일 (customloginview.php, loginview-form.php)
 * 구성은 카탈로그 통합로그인 화면(integrated)을 따르고, 색상·글꼴은 중앙대 CAU-ON 메인 화면에 맞췄다.
 */
@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard-SemiBold';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body.cau-login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f5f8;
    color: #333;
    font-family: 'Pretendard-Regular', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.cau-login a { color: inherit; text-decoration: none; }

.cau-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.cau-header {
    background: #fff;
    border-bottom: 1px solid #e3e7ec;
}
.cau-header .cau-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cau-logo { margin: 0; }
.cau-logo img {
    display: block;
    height: 40px;
    width: auto;
}

/* 본문 */
.cau-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

/* 로그인 카드: 왼쪽 통합 / 오른쪽 일반 */
.cau-login-card {
    width: 100%;
    max-width: 860px;
    display: flex;
    background: #fff;
    border: 1px solid #e3e7ec;
    flex-wrap: wrap;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(14, 51, 111, 0.08);
}
.cau-login-card.is-single { max-width: 440px; }

.cau-login-col {
    flex: 1;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
}
.cau-login-col.is-sso {
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid #e3e7ec;
}

.cau-col-title {
    margin: 0 0 10px;
    font-family: 'Pretendard-SemiBold', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1f2b;
    text-align: center;
    letter-spacing: -0.3px;
}
.cau-col-desc {
    margin: 0 0 24px;
    color: #6b7380;
    font-size: 14px;
    text-align: center;
}
.cau-col-desc.is-mobile-only { display: none; }

/* 입력 */
.cau-input {
    display: block;
    width: 100%;
    height: 46px;
    margin-bottom: 10px;
    padding: 0 14px;
    border: 1px solid #d5dae1;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: #222;
}
.cau-input:focus {
    outline: none;
    border-color: #0060B4;
    box-shadow: 0 0 0 3px rgba(0, 96, 180, 0.15);
}

/* 버튼 */
.cau-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-family: 'Pretendard-SemiBold', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}
.cau-login .cau-btn { color: #fff; }
.cau-btn-sso { background: #0E336F; }
.cau-btn-sso:hover { background: #0a2853; }
.cau-btn-login { background: #0060B4; margin-top: 4px; }
.cau-btn-login:hover { background: #004f94; }
.cau-btn-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.cau-login-col.is-sso .cau-btn { max-width: 300px; }

/* 회원가입 */
.cau-signup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #dde1e7;
    font-size: 13px;
    color: #6b7380;
}
.cau-login .cau-signup a {
    color: #0060B4;
    font-family: 'Pretendard-SemiBold', sans-serif;
}
.cau-login .cau-signup a:hover { text-decoration: underline; }

/* 소셜 로그인 */
.cau-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.cau-social-btn {
    flex: 1;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
}
.cau-social-btn img { width: 22px; height: 22px; }
.cau-social-btn.is-google { background: #fff; border-color: #d5dae1; }
.cau-social-btn.is-facebook { background: #4469b0; }
.cau-social-btn.is-kakao { background: #ffeb00; }
.cau-social-btn:hover { opacity: 0.88; }

/* 통합 입력 화면 하단 */
.cau-back {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}
.cau-login .cau-back a { color: #6b7380; }
.cau-login .cau-back a:hover { color: #0060B4; text-decoration: underline; }

/* 카드 하단: 개인정보처리방침·저작권 (로그인 서비스 화면은 페이지 푸터를 두지 않는다) */
.cau-card-foot {
    flex: 0 0 100%;
    padding: 18px 20px;
    border-top: 1px solid #e3e7ec;
    border-radius: 0 0 16px 16px;
    background: #f5f6f8;
    text-align: center;
    font-size: 12px;
    color: #6b7380;
}
.cau-card-foot p { margin: 6px 0 0; }
.cau-footer-links a { margin: 0 8px; font-size: 13px; }
.cau-login .cau-footer-links a { color: #222; font-family: 'Pretendard-SemiBold', sans-serif; }
.cau-login .cau-footer-links a.is-privacy { color: #0E8FD6; }

/* 모바일: 위아래로 쌓기 */
@media (max-width: 760px) {
    .cau-main { padding: 24px 16px; align-items: flex-start; }
    .cau-login-card { flex-direction: column; }
    .cau-login-col { padding: 32px 22px; }
    .cau-login-col.is-sso {
        border-right: 0;
        border-bottom: 1px solid #e3e7ec;
    }
    .cau-col-desc.is-mobile-only { display: block; }
    .cau-card-foot { flex-basis: auto; }
    .cau-header .cau-inner { height: 60px; }
    .cau-logo img { height: 32px; }
}
