/* 인증 페이지 스타일 - whiteblue 디자인 시스템 */

/* 인증 섹션 레이아웃 */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 25%, #ffffff 50%, #f0f9ff 75%, #eff6ff 100%);
    position: relative;
    overflow: hidden;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 좌측 정보 패널 */
.auth-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    color: var(--primary-700);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease-out;
}

.info-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: fadeInDown 0.7s ease-out;
}

.info-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    animation: fadeInDown 0.8s ease-out;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* 후킹 문구 영역 */
.info-highlight {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--primary-100);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    border-color: var(--primary-300);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.highlight-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.highlight-content {
    flex: 1;
}

.highlight-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.highlight-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
}

/* 우측 폼 컨테이너 */
.auth-form-container {
    background: white;
    border-radius: 24px;
    padding: 3.5rem 4.5rem;
    box-shadow: 0 20px 60px -10px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.1);
    animation: fadeInDown 0.6s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
}

/* 사용자 유형 탭 */
.user-type-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 1px solid var(--primary-200);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-600);
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    background: white;
    color: var(--primary-600);
    border-color: var(--primary-400);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* 폼 스타일 */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--gray-500);
    font-size: 0.975rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group label svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-500);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: white;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* 체크박스 스타일 */
.form-options {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--gradient-primary);
    border-color: var(--primary-600);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 버튼 스타일 */
.btn-login {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.btn-login svg {
    width: 20px;
    height: 20px;
}

/* 링크 스타일 */
.form-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.form-links .link {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-links .link:hover {
    color: var(--gray-700);
}

.form-links .link-primary {
    color: var(--primary-600);
    font-weight: 600;
}

.form-links .link-primary:hover {
    color: var(--primary-700);
}

.form-links .divider {
    color: var(--gray-300);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--gray-600);
}

.modal-body {
    padding: 1.5rem;
}

.modal-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.modal-footer button {
    flex: 1;
    padding: 0.75rem;
}

/* 모달 내 버튼 스타일 재정의 */
.modal-footer .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.modal-footer .btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-weight: 600;
}

.modal-footer .btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    transform: translateY(-1px);
}

/* 애니메이션 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-info {
        text-align: center;
        padding: 2rem;
    }

    .info-badge {
        margin: 0 auto 1.5rem;
    }

    .info-title {
        font-size: 2rem;
    }

    .info-description {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .auth-section {
        padding: 100px 0 40px;
    }

    .auth-form-container {
        padding: 2rem;
        border-radius: 16px;
    }

    .user-type-tabs {
        flex-direction: column;
    }

    .tab-btn {
        justify-content: flex-start;
    }

    .info-title {
        font-size: 1.75rem;
    }

    .info-features {
        display: none;
    }

    .modal-content {
        width: 95%;
        border-radius: 16px;
    }
}