/* 로그인 페이지 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #1a1a2e;
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1a1a2e;
    background-image:
        linear-gradient(135deg, rgba(26, 42, 58, 0.85) 0%, rgba(22, 40, 62, 0.80) 50%, rgba(15, 45, 75, 0.75) 100%),
        url('/RoboBizPortal/resources/images/login-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 헤더 */
.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
}

.register-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.register-link:hover {
    opacity: 0.8;
}

/* 메인 콘텐츠 */
.login-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

/* 타이틀 */
.login-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.title-dot {
    width: 12px;
    height: 12px;
    background: #1abc9c;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.login-title h1 {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.login-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* 로그인 박스 */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto;
}

.login-box-header {
    background: linear-gradient(135deg, #16a085 0%, #0e7763 100%);
    padding: 30px;
}

.login-box-header h2 {
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
}

.login-box-body {
    padding: 30px 40px 40px;
}

.input-label {
    font-size: 14px;
    color: #888888;
    margin-bottom: 20px;
}

/* 입력 필드 */
.input-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.input-icon {
    width: 40px;
    display: flex;
    justify-content: center;
    color: #888888;
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px;
    background: transparent;
    color: #333333;
}

.input-group input::placeholder {
    color: #aaaaaa;
}

.input-group:focus-within {
    border-bottom-color: #16a085;
}

.input-group:focus-within .input-icon {
    color: #16a085;
}

/* 에러 메시지 */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 로그인 버튼 */
.login-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid #16a085;
    color: #16a085;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #16a085;
    color: #ffffff;
}

/* 하단 링크 */
.login-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-links a {
    color: #16a085;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.login-links a:hover {
    color: #0e7763;
    text-decoration: underline;
}

/* ========== 회원가입 모달 ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-content.modal-sm {
    max-width: 380px;
}

.modal-header {
    background: linear-gradient(135deg, #16a085 0%, #0e7763 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px 30px 30px;
}

.modal-subtitle {
    text-align: center;
    color: #666666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 라디오 버튼 그룹 */
.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.radio-icon {
    color: #888888;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333333;
}

.radio-label input[type="radio"] {
    accent-color: #16a085;
}

/* 폼 그룹 */
.form-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    flex: 1;
}

/* 버튼 포함 폼 그룹 */
.form-group-with-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-with-btn .form-group {
    flex: 1;
}

.btn-check {
    padding: 10px 15px;
    background: #16a085;
    border: none;
    color: #ffffff;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.btn-check:hover {
    background: #0e7763;
}

/* 필드 메시지 */
.field-msg {
    font-size: 12px;
    margin: 5px 0 10px 35px;
    min-height: 16px;
}

.field-msg.error {
    color: #e74c3c;
}

.field-msg.success {
    color: #27ae60;
}

/* 아이디 찾기 결과 */
.find-result {
    text-align: center;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
    min-height: 20px;
}

.find-result.success {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
}

.find-result.error {
    background: #ffebee;
    color: #c62828;
}

.form-icon {
    width: 35px;
    display: flex;
    justify-content: center;
    color: #888888;
}

.form-group input,
.form-group select {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px;
    background: transparent;
    color: #333333;
}

.form-group input::placeholder {
    color: #aaaaaa;
}

.form-group:focus-within {
    border-bottom-color: #16a085;
}

.form-group:focus-within .form-icon {
    color: #16a085;
}

/* 약관 동의 섹션 */
.agreement-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #333333;
    margin-bottom: 5px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #16a085;
}

.checkbox-label .link {
    color: #16a085;
    text-decoration: underline;
}

.agreement-desc {
    font-size: 11px;
    color: #999999;
    margin-left: 24px;
    margin-bottom: 15px;
}

/* 모달 버튼 */
.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-back, .btn-next {
    flex: 1;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back {
    background: #16a085;
    border: none;
    color: #ffffff;
}

.btn-back:hover {
    background: #0e7763;
}

.btn-next {
    background: #0e7763;
    border: none;
    color: #ffffff;
}

.btn-next:hover {
    background: #006080;
}

/* 반응형 */
@media (max-width: 480px) {
    .login-header {
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 22px;
    }

    .login-title h1 {
        font-size: 28px;
        white-space: nowrap;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .login-box-body {
        padding: 25px 20px 30px;
    }

    .login-links {
        gap: 20px;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        padding: 20px;
    }
}
