/* Login Page Styles for eGov Framework 4.3 */

.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.system-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-form {
    margin-top: 1rem;
}

.form-floating {
    position: relative;
}

.form-floating > .form-control {
    height: calc(3rem + 2px);
    line-height: 1.25;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-floating > label {
    padding: 0.75rem 0.75rem;
    color: #6c757d;
}

.form-floating > label i {
    opacity: 0.7;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    transform: none;
}

.btn-outline-secondary {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

.alert-danger {
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.quick-login-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .login-logo {
        max-width: 150px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Accessibility */
.form-control:focus {
    outline: none;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 다크모드를 쓰지 않는다 (2026-10-19)
   로그인 화면은 밝은 배경 위에 흰 카드를 올리는 구성이라, OS 가 다크모드면 카드만
   어두워져 배경과 따로 놀았다. color-scheme 까지 light 로 고정해 입력창·스크롤바 같은
   브라우저 기본 UI 도 밝게 유지한다. */
:root {
    color-scheme: light;
}

/* System Notices
   ⚠ 높이가 고정이어야 한다. 공지가 늘면 카드 전체가 늘어나 로그인 버튼이 밀리고,
     공지 수에 따라 화면이 들썩인다. 목록에 고정 높이 + 내부 스크롤을 준다.
   한 건이 반드시 한 줄을 차지하도록 제목을 말줄임한다 — 줄바꿈되면 높이가 또 달라진다. */
.system-notices {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

#loginNoticeList {
    height: 112px;              /* 한 줄 37px × 3건 = 111px (실측). 4건째부터 스크롤 */
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notice-item {
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    gap: 8px;
}

.notice-item:hover {
    background-color: #f8f9fa;
}

.notice-text {
    font-size: 0.8rem;
    color: #495057;
    flex: 1;
    min-width: 0;               /* flex 자식은 이게 없으면 말줄임이 안 걸린다 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-date {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    flex-shrink: 0;
}

.system-maintenance-notice {
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
}

/* Footer Section */
.footer-section {
    position: relative;
    z-index: 1;
}

.ispark-logo {
    margin-top: 1.5rem;
}

.logo-text {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #6c757d;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Privacy Policy Modal */
.privacy-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.privacy-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
    padding: 1.2rem 1.5rem;
}

.privacy-modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.privacy-modal-body {
    padding: 1.5rem 2rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #374151;
    max-height: 70vh;
}

.privacy-modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 16px 16px;
    padding: 1rem 1.5rem;
}

.privacy-intro {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 1rem 1.2rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: #4b5563;
}

.privacy-section {
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.privacy-section:last-of-type {
    border-bottom: none;
}

.privacy-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    border-left: 3px solid #667eea;
}

.privacy-list {
    margin: 0.8rem 0;
}

.privacy-list-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
}

.privacy-list-item p {
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.privacy-list-num {
    font-weight: 600;
    color: #667eea;
    min-width: 1.2rem;
    flex-shrink: 0;
}

.privacy-table {
    font-size: 0.85rem;
    margin-top: 0.8rem;
}

.privacy-table thead th {
    background: #f8f9ff;
    color: #374151;
    font-weight: 600;
    border-color: #e5e7eb;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
}

.privacy-table tbody td {
    color: #4b5563;
    border-color: #e5e7eb;
    padding: 0.6rem 0.8rem;
    vertical-align: middle;
}

.privacy-contact-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-top: 0.8rem;
}

.privacy-contact-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.privacy-contact-info p {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.privacy-contact-info i {
    color: #667eea;
    width: 1rem;
    text-align: center;
}

.privacy-footer {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: #6b7280;
}

/* Print Styles */
@media print {
    .login-body {
        background: white;
    }

    .login-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
