/* ========================================
   회원가입 페이지 스타일
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.register-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 모바일 헤더 (PC에서는 숨김) */
.mobile-header {
    display: none;
    background: #009992;
    padding: 16px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    justify-content: space-between;
    align-items: center;
}

.mobile-back {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    padding: 4px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.mobile-logo i {
    font-size: 22px;
}

.mobile-spacer {
    width: 28px;
}

/* 메인 컨테이너 */
.register-container {
    display: flex;
    min-height: 100vh;
    flex: 1;
}

/* 좌측 브랜딩 영역 */
.register-branding {
    width: 40%;
    background-image: url(../../img/login/login.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* 배경 이미지 위 오버레이 */
.register-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 153, 146, 0.85) 0%, rgba(0, 184, 169, 0.75) 100%);
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
}

.branding-content h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.branding-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.branding-logo {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: auto;
    opacity: 0.9;
    z-index: 1;
}

/* 우측 폼 영역 */
.register-form-section {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8f9fa;
    overflow-y: auto;
}

.register-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 40px 36px;
}

.register-header {
    text-align: center;
    margin-bottom: 24px;
}

.register-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.register-header p {
    font-size: 14px;
    color: #888;
}

/* 사용자 유형 탭 */
.user-type-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.type-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.type-tab i {
    font-size: 18px;
}

.type-tab:hover {
    border-color: #009992;
    color: #009992;
}

.type-tab.active {
    border-color: #009992;
    background: #009992;
    color: #fff;
}

/* 에러 메시지 */
.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error-message i {
    font-size: 16px;
}

/* 폼 스타일 */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.register-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.register-form .form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.register-form .form-label i {
    color: #009992;
    font-size: 13px;
}

.register-form .form-label .required {
    color: #e53e3e;
}

.register-form .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    background: #fff;
}

.register-form .form-input:focus {
    outline: none;
    border-color: #009992;
    box-shadow: 0 0 0 3px rgba(0, 153, 146, 0.1);
}

.register-form .form-input::placeholder {
    color: #bbb;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 비밀번호 입력 */
.password-input-wrap {
    position: relative;
}

.password-input-wrap .form-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 15px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #666;
}

/* 버튼 영역 */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-cancel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #eee;
}

.btn-submit {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #009992;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #008882;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 153, 146, 0.3);
}

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

.btn-submit i {
    font-size: 13px;
    transition: transform 0.2s;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

/* 링크 */
.register-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
}

.register-links span {
    color: #888;
}

.register-links a {
    color: #009992;
    text-decoration: none;
    font-weight: 500;
}

.register-links a:hover {
    text-decoration: underline;
}

/* 푸터 */
.register-footer {
    margin-top: 24px;
    text-align: center;
}

.register-footer p {
    font-size: 12px;
    color: #bbb;
}

/* ========================================
   반응형 - 태블릿
   ======================================== */
@media (max-width: 1024px) {
    .register-branding {
        width: 35%;
        padding: 40px;
    }

    .register-form-section {
        width: 65%;
        padding: 32px;
    }

    .branding-content h1 {
        font-size: 26px;
    }
}

/* ========================================
   반응형 - 모바일
   ======================================== */
@media (max-width: 768px) {
    .register-page {
        background: #fff;
    }

    .mobile-header {
        display: flex;
    }

    .register-container {
        flex-direction: column;
        padding-top: 60px;
    }

    .register-branding {
        display: none;
    }

    .register-form-section {
        width: 100%;
        padding: 24px 20px;
        background: #fff;
        justify-content: flex-start;
        min-height: calc(100vh - 60px);
    }

    .register-card {
        box-shadow: none;
        padding: 20px 0;
        border-radius: 0;
    }

    .register-header {
        margin-bottom: 20px;
    }

    .register-header h2 {
        font-size: 22px;
    }

    .user-type-tabs {
        margin-bottom: 20px;
    }

    .type-tab {
        padding: 12px 14px;
        font-size: 14px;
    }

    .register-form .form-input {
        padding: 14px;
        font-size: 16px; /* iOS 줌 방지 */
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        flex: none;
        padding: 16px;
        font-size: 16px;
    }

    .register-footer {
        margin-top: 32px;
    }
}

/* ========================================
   반응형 - 작은 모바일
   ======================================== */
@media (max-width: 375px) {
    .register-form-section {
        padding: 20px 16px;
    }

    .register-header h2 {
        font-size: 20px;
    }

    .type-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ========================================
   애니메이션
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-card {
    animation: fadeInUp 0.4s ease-out;
}
