/* ===== 인증 모달 스타일 ===== */
.login-modal, .signup-modal {
    max-width: 400px;
    width: calc(100vw - 32px);
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 16px;
    background: transparent;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--main-purple);
    box-shadow: 0 0 0 3px rgba(133, 114, 238, 0.1);
}

.form-error {
    display: none;
    font-size: 13px;
    color: #ef4444;
    margin-top: 4px;
}

.modal-links {
    margin-top: 20px;
    text-align: center;
}

.link-btn {
    background: none;
    border: none;
    color: var(--main-purple);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.link-btn:hover {
    color: #6D5BD0;
}

.divider {
    margin: 16px 0;
    text-align: center;
    position: relative;
    color: var(--text-gray);
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-gray);
    z-index: 1;
}

.divider span {
    background: var(--background-white);
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

/* ===== 사이드바 인증 영역 스타일 ===== */
.sidebar-auth {
    margin-bottom: 10px; /* tighten vertical space below auth buttons */
}
/* Reduce vertical padding for the sidebar footer to tighten space above/below */
.sidebar-footer { padding: 14px 20px; }

.sidebar-auth-logged-out {
    display: flex;
    flex-direction: row; /* Place login and signup on one line */
    gap: 8px;
    justify-content: center; /* center buttons without stretching */
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* center icon + text */
    gap: 6px;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.auth-btn:hover {
    background: var(--purple-hover);
    border-color: var(--main-purple);
}

.auth-btn i { font-size: 14px; }

.sidebar-auth-logged-in {
    display: flex;
    flex-direction: row;
    align-items: center; /* vertically center with logout button */
    justify-content: flex-start;
    gap: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0; /* no extra space in row layout */
    flex: 1;
}

.user-status-icon {
    color: #10b981;
    font-size: 16px;
    flex-shrink: 0;
}

.user-email {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1; /* tighter to center-align visually */
}

.logout-btn {
    padding: 0; /* override outline default */
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.logout-btn i { font-size: 14px; }

.profile-btn {
    padding: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.profile-btn i { font-size: 14px; }
