.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.login-container {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.login-tabs {
    display: flex;
    background: #f8f9fa;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    border: none;
    background: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: #79818a;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: var(--black);
    background: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #000000, #686868);
}

.tab-btn:hover {
    color: #3d30cf;
}

.tab-content {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 30px;
}

.login-form {
    margin-top: 1.75rem;
}

.form-group {
    margin-bottom: 0rem;
}

.form-group label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--black);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group select {
    cursor: pointer;
    color: #64748b;
}

.form-group select option {
    color: var(--black);
}


/* ===== 비밀번호 래퍼 ===== */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #232c55;
}

.toggle-password i {
    font-size: 1.125rem;
}

/* ===== 중복확인 버튼이 있는 입력 ===== */
.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn input {
    flex: 1;
}

.check-btn {
    padding: 0.75rem 1.25rem;
    background: #f0f0f0;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    color: #545c68;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.check-btn:hover {
    background: #7d7d7d;
    color: rgb(240, 240, 240);
}


/* ===== 에러 메시지 ===== */
.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 6px;
    min-height: 18px;
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
}

.form-group input.success,
.form-group select.success {
    border-color: #10b981;
}

/* ===== 폼 옵션 ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #64748b;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #316ab9;
}

.find-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.find-link:hover {
    color: #000047;
}

/* ===== 체크박스 그룹 ===== */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.view-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.view-link:hover {
    color: #000047;
}

/* ===== 제출 버튼 ===== */
.submit-btn {
    display: block;
    margin: auto;
    margin-top: 1rem;
    width: 30%;
    padding: 0.875rem;
    border: solid 1px var(--gray-border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}
/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    .login-section {
        padding: 80px 15px 30px;
    }

    .login-container {
        border-radius: 15px;
    }

    .tab-content {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 0.875rem;
    }

    .tab-btn {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .submit-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .input-with-btn {
        flex-direction: column;
    }

    .check-btn {
        width: 100%;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 70px 10px 20px;
    }

    .tab-content {
        padding: 25px 15px;
    }

    .form-title {
        font-size: 1.375rem;
    }

    .social-btn {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}