/* 모달 오버레이 */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; padding: 20px; } /* 모달 컨텐츠 */ .modal-content { background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; } /* 모달 헤더 */ .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e5e7eb; background-color: #f9fafb; border-radius: 8px 8px 0 0; } .modal-header h2 { margin: 0; font-size: 1.8rem; font-weight: 600; color: #1f2937; } .close-button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #6b7280; padding: 4px; border-radius: 4px; transition: color 0.2s; } .close-button:hover { color: #374151; } /* 폼 스타일 */ .signup-form { padding: 24px; } .form-section { margin-bottom: 32px; } .form-section h3 { margin: 0 0 16px 0; font-size: 1.4rem; font-weight: 600; color: #374151; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; } .form-row { margin-bottom: 16px; } .form-group { display: flex; flex-direction: column; } .form-group label { margin-bottom: 6px; font-weight: 500; color: #374151; font-size: 1.1rem; } .form-group input, .form-group select { padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 1.1rem; transition: border-color 0.2s, box-shadow 0.2s; background-color: white; } .form-group input:focus, .form-group select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .form-group input:disabled, .form-group select:disabled { background-color: #f3f4f6; color: #6b7280; cursor: not-allowed; } /* 입력 필드와 버튼이 함께 있는 경우 */ .input-with-button { display: flex; gap: 8px; align-items: flex-end; } .input-with-button input { flex: 1; } .check-button { padding: 10px 16px; background-color: #6b7280; color: white; border: none; border-radius: 6px; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s; white-space: nowrap; min-width: 80px; } .check-button:hover:not(:disabled) { background-color: #4b5563; } .check-button:disabled { background-color: #d1d5db; cursor: not-allowed; } /* 메시지 스타일 */ .error-message { color: #dc2626; font-size: 0.8rem; margin-top: 4px; display: block; } .success-message { color: #059669; font-size: 0.8rem; margin-top: 4px; display: block; } .submit-error { background-color: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 12px; border-radius: 6px; margin-bottom: 16px; text-align: center; } /* 폼 액션 버튼 */ .form-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 20px; border-top: 1px solid #e5e7eb; margin-top: 24px; } .cancel-button, .submit-button { padding: 12px 24px; border-radius: 6px; font-weight: 500; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; border: none; min-width: 100px; } .cancel-button { background-color: #f3f4f6; color: #374151; border: 1px solid #d1d5db; } .cancel-button:hover:not(:disabled) { background-color: #e5e7eb; } .submit-button { background-color: #3b82f6; color: white; } .submit-button:hover:not(:disabled) { background-color: #2563eb; } .cancel-button:disabled, .submit-button:disabled { opacity: 0.6; cursor: not-allowed; } /* 반응형 디자인 */ @media (max-width: 768px) { .modal-content { margin: 10px; max-height: 95vh; } .modal-header { padding: 16px 20px; } .signup-form { padding: 20px; } .form-actions { flex-direction: column; } .cancel-button, .submit-button { width: 100%; } .input-with-button { flex-direction: column; align-items: stretch; } .check-button { width: 100%; margin-top: 8px; } } /* 스크롤바 스타일 */ .modal-content::-webkit-scrollbar { width: 6px; } .modal-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; } .modal-content::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; } .modal-content::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }