/* assets/css/forms.css */

/* 폼 컨테이너 */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #36344D;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #673DE6;
    box-shadow: 0 0 0 2px rgba(103, 61, 230, 0.1);
}

/* 자동완성 컨테이너 */
.autocomplete-container {
    position: relative;
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f5f5f5;
}

.suggestion-type {
    color: #666;
    font-size: 0.9em;
    margin-left: 8px;
}

.suggestion-region {
    color: #888;
    font-size: 0.8em;
    display: block;
}

/* 폼 검증 */
.form-group input:invalid {
    border-color: #dc3545;
}

.form-group .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* 로그인/회원가입 폼 */
.auth-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

.auth-form {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-container,
    .auth-form {
        padding: 1rem;
    }
}