/**
 * 폼 필드 포커스·호버 시 박스쉐도우(부트스트랩 글로우 등) 제거
 * + hover/focus/autofill 배경색 통일 (회원가입·후기·파트너·어드민 공통)
 * + 버튼 hover/focus 시 색상 변화 없음
 * - gojipsa.css / partner-portal.css / admin.css 에서 @import
 * - partner-login.jsp 등 단독 링크
 */

:root {
    --bs-focus-ring-box-shadow: none;
    --bs-focus-ring-width: 0;
    --bs-btn-focus-box-shadow: none;
    --gj-input-autofill-bg: var(--bg-page);
    --gj-input-autofill-text: var(--text-primary);
}

.form-control,
.form-select,
textarea.form-control {
    box-shadow: none !important;
    background-image: none !important;
}

.form-control:hover,
.form-control:focus,
.form-control:focus-visible,
.form-control:active,
.form-select:hover,
.form-select:focus,
.form-select:focus-visible,
.form-select:active,
textarea.form-control:hover,
textarea.form-control:focus,
textarea.form-control:focus-visible,
textarea.form-control:active {
    box-shadow: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.input-group > .form-control:focus,
.input-group > .form-control:focus-visible,
.input-group > .form-select:focus,
.input-group > .form-select:focus-visible,
.input-group > textarea.form-control:focus,
.input-group > textarea.form-control:focus-visible {
    box-shadow: none !important;
}

.input-group > .form-control:hover,
.input-group > .form-control:focus,
.input-group > .form-control:focus-visible,
.input-group > .form-control:active,
.input-group > .form-select:hover,
.input-group > .form-select:focus,
.input-group > .form-select:focus-visible,
.input-group > .form-select:active {
    background-color: transparent !important;
    background-image: none !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]):hover,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="image"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus-visible,
textarea:hover,
textarea:focus,
textarea:focus-visible,
select:hover,
select:focus,
select:focus-visible {
    box-shadow: none !important;
}

/* 브라우저 autofill(자동완성) 파란·노란 배경 제거 */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active,
.form-select:-webkit-autofill,
textarea.form-control:-webkit-autofill,
textarea.form-control:-webkit-autofill:hover,
textarea.form-control:-webkit-autofill:focus,
textarea.form-control:-webkit-autofill:active,
.input-group > .form-control:-webkit-autofill,
.input-group > .form-control:-webkit-autofill:hover,
.input-group > .form-control:-webkit-autofill:focus,
.input-group > .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--gj-input-autofill-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--gj-input-autofill-bg) inset !important;
    -webkit-text-fill-color: var(--gj-input-autofill-text) !important;
    caret-color: var(--gj-input-autofill-text);
    background-color: transparent !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* 버튼 hover/focus — 기본 상태 색상 유지 (롤오버 시 변색 없음) */
.btn:hover,
.btn:focus,
.btn:focus-visible,
.btn-check:focus-visible + .btn {
    color: var(--bs-btn-color) !important;
    background-color: var(--bs-btn-bg) !important;
    border-color: var(--bs-btn-border-color) !important;
    box-shadow: none !important;
}

.form-control:autofill,
.form-select:autofill,
textarea.form-control:autofill,
.input-group > .form-control:autofill {
    box-shadow: 0 0 0 1000px var(--gj-input-autofill-bg) inset !important;
    -webkit-text-fill-color: var(--gj-input-autofill-text) !important;
    background-color: transparent !important;
}

/* 검색창 래퍼 포커스 링은 gojipsa.css .bt-search-wrap 에서 처리 */

/* time 입력 — 시계 아이콘은 숨기고, 필드 전체 클릭으로 시간 선택 */
input[type="time"] {
    position: relative;
    cursor: pointer;
    text-align: center;
}

input[type="time"]::-webkit-datetime-edit {
    text-align: center;
}

input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    text-align: center;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

input[type="time"]::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

input[type="time"]::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
}

