/**
 * 세한대학교 로그인 페이지 커스텀 스타일
 * 통합 로그인 및 일반 로그인 페이지에서 공통으로 사용
 */

/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
    --sehan-blue: #00a0e9; /* 로고 상단 스카이블루 */
    --sehan-orange: #f39200; /* 로고 하단 오렌지 */
    --text-charcoal: #333333;
    --bg-light: #f4f7fa;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    justify-content: flex-start;
    align-items: stretch;
}

/* 세한대 블루 & 오렌지 아이덴티티 배경 그래픽 */
.bg-graphic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(circle at 15% 15%, rgba(0, 160, 233, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(243, 146, 0, 0.08) 0%, transparent 45%);
}

/* 배경 애니메이션 요소 */
.wave-shape {
    position: fixed;
    width: 900px;
    height: 900px;
    background: linear-gradient(135deg, rgba(0, 160, 233, 0.04), rgba(243, 146, 0, 0.04));
    border-radius: 43% 57% 60% 40% / 45% 45% 55% 55%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
    animation: rotate 25s linear infinite;
}

.wave-1 { top: -250px; right: -150px; }
.wave-2 { bottom: -350px; left: -150px; animation-duration: 30s; animation-direction: reverse; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 상단 헤더 */
header {
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    height: 32px;
    width: auto;
    display: block;
}

/* 메인 컨텐츠 */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* 로그인 박스 */
.login-box {
    background-color: var(--white);
    width: 100%;
    max-width: 480px;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.login-box h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-charcoal);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

/* 입력 폼 */
.input-group {
    margin-bottom: 15px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 18px 22px;
    border: 2px solid #edf2f7;
    border-radius: 14px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f8fafc;
    color: var(--text-charcoal);
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--sehan-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 5px rgba(0, 160, 233, 0.12);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #94a3b8;
}

/* 메인 로그인 버튼 */
.submit-btn {
    width: 100%;
    padding: 20px;
    background: var(--sehan-blue);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 160, 233, 0.2);
    text-decoration: none;
    display: block;
    text-align: center;
}

.submit-btn:hover {
    background: #008ece;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(0, 160, 233, 0.3);
}

/* 추가 링크 스타일 (아이디 찾기 등) - 일반 로그인용 */
.login-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
}

.login-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.login-links a:hover {
    color: var(--sehan-blue);
}

.login-links span {
    width: 1px;
    height: 12px;
    background-color: #cbd5e1;
}

/* 하단 푸터 */
.footer-info {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 30px;
}

.link-privacy {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 12px;
}

.link-privacy:hover {
    color: var(--sehan-blue);
}

.copyright-text {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 하단 액션 버튼 영역 - 통합 로그인용 */
.bottom-actions {
    margin-top: 25px;
    text-align: center;
}

.btn-normal-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: #64748b;
    border: 1.5px solid var(--border-color);
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-normal-login:hover {
    background-color: #f1f5f9;
    color: var(--text-charcoal);
    border-color: #cbd5e1;
}

/* 반응형 */
@media (max-width: 520px) {
    .login-box {
        padding: 40px 25px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .login-box h1 {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 18px;
        font-size: 16px;
    }
    
    .bg-graphic, 
    .wave-shape {
        display: none;
    }
    
    header {
        padding: 20px 0;
    }
    
    .header-logo {
        height: 28px;
    }
    
    .login-links {
        gap: 12px;
    }
    
    .login-links a {
        font-size: 13px;
    }
}
