/* 전체 레이아웃 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 로그인 컨테이너 */
.login-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 로그인 카드 */
.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
}

/* 로고 영역 */
.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

/* 제목 */
.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.password-change-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.form-control:invalid {
    border-color: #e53935;
}

/* 체크박스 그룹 */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 로그인 버튼 */
.login-button {
    width: 100%;
    padding: 14px;
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #c62828;
}

.login-button:active {
    background-color: #b71c1c;
}

/* 메시지 */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #e53935;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #4caf50;
}

.field-error {
    color: #e53935;
    font-size: 12px;
    margin-top: 4px;
}

/* 회사 검색 행 */
.company-search-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.company-search-row .form-control {
    flex: 1;
    min-width: 0;
}

.company-search-btn {
    flex-shrink: 0;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.company-search-btn:hover {
    background: #eee;
    border-color: #ccc;
}

.field-message {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    min-height: 1.2em;
}

.field-message-error {
    color: #c62828;
}

/* 업체 선택 모달 */
.company-select-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    padding: 20px;
}

.company-select-overlay.company-select-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.company-select-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.company-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.company-select-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.company-select-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-select-close:hover {
    background: #f0f0f0;
    color: #333;
}

.company-select-list {
    overflow-y: auto;
    padding: 8px 0;
    max-height: 50vh;
}

.company-select-item {
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.company-select-item:hover {
    background: #f5f5f5;
}

.company-select-item:active {
    background: #eee;
}

/* 비밀번호 변경 컨테이너 */
.password-change-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-change-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
}

/* 안내문 */
.info-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cancel-button,
.save-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-button {
    background-color: #f5f5f5;
    color: #333;
}

.cancel-button:hover {
    background-color: #e0e0e0;
}

.save-button {
    background-color: #667eea;
    color: white;
}

.save-button:hover {
    background-color: #5568d3;
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .login-card,
    .password-change-card {
        padding: 30px 20px;
    }
    
    .login-title,
    .password-change-title {
        font-size: 20px;
    }
}




























