/**
 * 인증 페이지 스타일
 */

/* 인증 페이지 배경 */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

/* 인증 컨테이너 */
.auth-container {
    width: 100%;
    max-width: 420px;
}

/* 인증 박스 */
.auth-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
}

/* 로고 */
.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo-image {
    height: 60px;
    width: auto;
}

/* 타이틀 */
.auth-title {
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* 섹션 */
.auth-section h2 {
    text-align: center;
    color: #444;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* 폼 스타일 */
.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.auth-form .form-group label .required {
    color: #e74c3c;
}

.auth-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.auth-form .form-control::placeholder {
    color: #aaa;
}

/* 버튼 */
.btn-block {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* 에러 메시지 */
.auth-error {
    background: #fee;
    color: #c00;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    border: 1px solid #fcc;
}

/* 성공 메시지 */
.auth-success {
    background: #efe;
    color: #060;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    border: 1px solid #cfc;
}

/* 푸터 (링크) */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 승인 대기 안내 */
.pending-notice {
    text-align: center;
    padding: 1rem 0;
}

.pending-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.pending-notice h2 {
    color: #333;
    margin-bottom: 1rem;
}

.pending-notice p {
    color: #666;
    margin-bottom: 0.5rem;
}

.pending-info {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* 관리자 패널 스타일 */
.admin-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.admin-panel {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.admin-panel-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.admin-panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.25rem;
}

.admin-panel-close:hover {
    color: #333;
}

.admin-panel-body {
    padding: 1.5rem;
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section h3 {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

/* 가입 신청 카드 */
.registration-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.registration-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.registration-card-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.registration-card-date {
    font-size: 0.8rem;
    color: #888;
}

.registration-card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.registration-card-info span {
    color: #666;
}

.registration-card-info strong {
    color: #333;
}

.registration-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.registration-card-actions .btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* 사용자 테이블 */
.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #444;
    font-size: 0.85rem;
}

.user-table td {
    font-size: 0.9rem;
    color: #333;
}

.user-table .role-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-badge.admin {
    background: #e3f2fd;
    color: #1976d2;
}

.role-badge.org_admin {
    background: #e8f5e9;
    color: #388e3c;
}

.user-table .status-active {
    color: #388e3c;
}

.user-table .status-inactive {
    color: #d32f2f;
}

/* 빈 상태 */
.empty-state-small {
    text-align: center;
    padding: 2rem;
    color: #888;
}

/* 사용자 정보 헤더 */
.user-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info-header .user-name {
    font-weight: 600;
    color: #333;
}

.user-info-header .user-org {
    color: #666;
    font-size: 0.9rem;
}

.user-info-header .user-role {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #667eea;
    color: white;
}

/* 버튼 - 정보 */
.btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
}

.btn-info:hover {
    background-color: #138496;
}

/* =====================================================
   새로운 로그인 페이지 디자인 (2열 레이아웃)
   ===================================================== */

/* 페이지 배경 */
.auth-page-new {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #BDD4EA;
}

/* 2열 레이아웃 */
.auth-layout {
    display: flex;
    min-height: 100vh;
}

/* 왼쪽: 일러스트 영역 */
.auth-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #BDD4EA;
    padding: 0;
    overflow: hidden;
}

.illustration-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* 오른쪽: 폼 영역 */
.auth-form-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 2rem;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

/* 로고 (새 디자인) */
.auth-page-new .auth-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-page-new .auth-logo-image {
    height: 80px;
    width: auto;
}

/* 타이틀 (새 디자인) */
.auth-title-new {
    text-align: center;
    color: #334155;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

/* 폼 그룹 */
.form-group-new {
    margin-bottom: 1rem;
}

/* 입력 필드 (새 디자인) */
.input-new {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #e2e8f0;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    color: #334155;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.input-new::placeholder {
    color: #94a3b8;
}

.input-new:focus {
    outline: none;
    background: #cbd5e1;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 로그인 버튼 (새 디자인) */
.btn-login {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

/* 푸터 링크 (새 디자인) */
.auth-footer-new {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer-new a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
}

.auth-footer-new a:hover {
    text-decoration: underline;
}

/* 승인 대기 (새 디자인) */
.pending-notice-new {
    text-align: center;
    padding: 2rem 0;
}

.pending-icon-new {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.pending-notice-new h2 {
    color: #334155;
    margin-bottom: 1rem;
}

.pending-notice-new p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.btn-secondary-new {
    padding: 0.75rem 1.5rem;
    background: #e2e8f0;
    color: #334155;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-new:hover {
    background: #cbd5e1;
}

/* 반응형: 모바일에서 1열 레이아웃 */
@media (max-width: 900px) {
    .auth-layout {
        flex-direction: column;
    }

    .auth-illustration {
        padding: 0;
        min-height: 30vh;
        max-height: 40vh;
    }

    .illustration-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .auth-form-area {
        padding: 2rem 1rem;
    }

    .auth-form-container {
        padding: 1rem;
    }

    .auth-title-new {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-illustration {
        min-height: 25vh;
    }

    .illustration-image {
        max-height: 20vh;
    }

    .auth-page-new .auth-logo-image {
        height: 50px;
    }

    .auth-title-new {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .input-new {
        padding: 0.875rem 1rem;
    }

    .btn-login {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

/* 기존 반응형 (이전 디자인 유지) */
@media (max-width: 480px) {
    .auth-box {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.25rem;
    }

    .registration-card-info {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        width: 95%;
        margin: 1rem;
    }
}
