/* Auth Pages Common Styles */
body {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
}

/* Success and Error Messages */
.success-message {
    background-color: rgba(168, 230, 207, 0.2);
    border: 1px solid #a8e6cf;
    color: #2d6a4f;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message:not(:empty) {
    display: block;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Auth Container */
.auth-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    z-index: 100;
}

.auth-header {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-header .logo {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-header h1 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.home-link {
    display: block;
    text-decoration: none;
    margin-bottom: 1.5rem;
    text-align: center;
}

.logo {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    padding: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.auth-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* Form Elements */
.form-control {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #fff;
    margin-bottom: 1rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
    outline: none;
}

/* 자동완성 중 입력 필드 커서 숨기기 */
.company-autocomplete-container.has-focus .form-control {
    caret-color: transparent;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Auth Button */
.auth-button {
    background: #fff;
    border: none;
    border-radius: 6px;
    color: #000;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem;
    width: 100%;
    transition: all 0.3s ease;
}

.auth-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.auth-button:active {
    transform: translateY(0);
}

/* Auth Link */
.auth-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 1.5rem;
    text-align: center;
}

.auth-link a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-link a:hover {
    opacity: 0.8;
}

/* Select2 Custom Styles */
.select2-container--default .select2-selection--single {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    height: auto;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff;
    line-height: normal;
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 0.75rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #fff transparent;
}

.select2-container--default .select2-results__option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.75rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #FF0080;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.select2-dropdown {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Optimization */
@media (max-width: 991.98px) {
    .auth-container {
        max-width: 100%;
        width: 90%;
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .auth-container {
        padding: 1.5rem;
        border-radius: 12px;
        width: 95%;
    }

    .logo {
        font-size: 1.25rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-button {
        padding: 0.7rem;
    }
}

/* 도움말 텍스트 스타일 */
.help-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0.25rem 0 1rem 0;
    padding: 0;
}

/* 알림 텍스트 스타일 */
.notice-text {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #adb5bd;
    font-size: 0.875rem;
    margin: 0 0 2rem 0;
    padding: 1rem;
}

/* Modal Styles */
.modal-content {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #fff;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.modal-header .modal-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.modal .form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.modal .invalid-feedback {
    color: #ff6b6b;
    font-size: 0.75rem;
}

.modal .btn {
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

.modal .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal .btn-primary {
    background: #fff;
    border: none;
    color: #000;
}

.modal .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.modal .notice-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 자동완성 스타일 */
.company-autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
    padding: 0; /* 패딩 제거 */
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.autocomplete-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.autocomplete-item.focused {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid #fff;
}

.autocomplete-item.no-results {
    color: rgba(255, 255, 255, 0.6);
    cursor: default;
}

.autocomplete-item.no-results:hover {
    background: transparent;
}

/* 자동완성 스크롤바 스타일 */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}