@charset "UTF-8";

/* =========================================
   공통 & 유틸리티
========================================= */
.fc-fff {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 300 !important;
}

/* =========================================
   1. 로그인 페이지 (Login)
========================================= */
main.login {
    background-color: #13003F;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

#login-img {
    position: absolute;
    right: 10%;
    z-index: 0;
}

.login-container {
    background: linear-gradient(180deg, rgb(82 177 255 / 33%) 0%, rgba(0, 122, 221, 0.33) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid #ffffff26;
    padding: 70px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 40%;
    max-width: 640px;
    text-align: center;
    z-index: 1;
}

.login-container h2 {
    margin-bottom: 25px;
    color: #fff;
    text-align: left;
}

.login-form-group {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 20px;
}

/* 로그인 인풋창 전용 스타일 복구 */
.login-form-group input[type="text"],
.login-form-group input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dddddd8c;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff38;
    color: #ffffff !important;
    outline: none;
    font-weight: 300;
}
.login-form-group input::placeholder {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.blue-btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}
.blue-btn:hover {
    background-color: #0056b3;
}

.error-message {
    color: #dc3545;
    margin-top: 15px;
    font-weight: bold;
}

/* 소셜 로그인 구분선 & 구글 버튼 */
.social-login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #ffffff;
}
.social-login-separator::before,
.social-login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ffffff3b;
}
.social-login-separator span {
    padding: 0 10px;
    font-size: 14px;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: 1px solid #ddd;
    gap: 8px;
}
.google-login-btn span {
    font-weight: 600;
}
.google-login-btn:hover {
    background-color: #f1f1f1;
}
.google-login-btn img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.login-bottom .form-check {
    display: flex;
    align-items: flex-start;
}
.save-id {
    width: 100%;
    margin: 0;
}


/* =========================================
   2. 회원가입 폼 (Signup - Glassmorphism)
========================================= */
main.signup {
    background-color: #13003F !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 120px 20px 60px;
    margin: 0;
}

.signup-card.glass-container {
    background: linear-gradient(180deg, rgb(82 177 255 / 33%) 0%, rgba(0, 122, 221, 0.33) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid #ffffff26;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 50px;
    width: 100%;
    max-width: 800px;
    color: #fff;
    margin: 0 auto;
}

.signup-title {
    text-align: left;
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 28px;
}

.glass-container .signup-form-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ffffff3b;
    padding: 20px 0;
    margin: 0;
}

.glass-container .form-label-custom {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    width: 30%;
    margin-bottom: 0;
    text-align: left;
    flex-shrink: 0;
}

.glass-container .input-wrapper,
.glass-container .input-group-custom {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.glass-container .input-group-custom.d-flex.gap-2 {
    flex-direction: row;
}

/* 회원가입 폼 인풋 스타일 */
.glass-container .input-wrapper input,
.glass-container .input-group-custom input {
    flex: 1 !important;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dddddd8c;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff5b;
    color: #ffffff !important;
    outline: none;
    font-weight: 300;
    box-sizing: border-box;
}

.glass-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.glass-container input:focus {
    background: #ffffff80;
    border-color: #ffffff;
}

.signup-sub-btn {
    flex: 0 0 130px !important;
    width: 130px !important;
    white-space: nowrap;
    padding: 10px !important;
    font-size: 14px !important;
}

/* 회원가입 약관 박스 */
.glass-container .gray-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #ffffff3b;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    border-radius: 8px;
    padding: 15px;
    height: 160px;
    overflow-y: auto;
    line-height: 1.5;
}
.glass-container .gray-box h5 {
    color: #fff;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}
.glass-container .help-text {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px;
    display: block;
}


/* =========================================
   3. 아이디/비밀번호 찾기 (Find User Modal)
========================================= */
.auth-modal-content.glass-container {
    background-color: transparent !important;
    background: linear-gradient(180deg, rgb(82 177 255 / 33%) 0%, rgba(0, 122, 221, 0.33) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 0.5px solid #ffffff26 !important;
    border-radius: 20px !important;
    color: #fff !important;
    padding: 10px 5px;
}

#findAccountModalLabel {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 5px;
}

.auth-modal-header {
    border-bottom: 1px solid #ffffff1a !important;
    padding: 20px 25px 15px !important;
}
.auth-modal-body {
    padding: 20px 25px 10px !important;
}
.auth-modal-footer {
    display: none !important; 
}
.auth-modal-tab-content {
    display: block !important;
}

/* 탭 메뉴 다크모드화 */
.auth-modal-tabs {
    border-bottom: 1px solid #ffffff3b !important;
    margin-bottom: 25px;
}
.auth-modal-tabs .nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
    border: none !important;
    font-weight: 500;
    background: transparent !important;
}
.auth-modal-tabs .nav-link.active {
    color: #fff !important;
    border-bottom: 2px solid #007bff !important;
}
.auth-modal-tabs .nav-link:hover {
    color: #fff !important;
}

/* 폼 라벨 텍스트 */
.auth-form .form-label {
    color: #fff !important;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}

/* 찾기 모달 입력창 */
.auth-form .form-control {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid #ffffff3b !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 300;
    box-shadow: none !important;
}
.auth-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
.auth-form .form-control:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #007bff !important;
}

/* 입력창 + 우측 인증/확인 버튼 분리 배치 */
.auth-form .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important; 
}
.auth-form .input-group .form-control {
    flex: 1 !important;
    width: auto !important;
    border-radius: 8px !important; 
}
.auth-form .input-group .btn {
    flex: 0 0 130px !important;
    width: 130px !important;
    background-color: #007bff !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important; 
    font-weight: 600;
    font-size: 14px;
    padding: 10px !important;
    white-space: nowrap;
}
.auth-form .input-group .btn:hover {
    background-color: #0056b3 !important;
}

/* 하단 메인 액션 버튼 */
.auth-form .btn-primary {
    background-color: #007bff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 16px;
}
.auth-form .btn-primary:hover {
    background-color: #0056b3 !important;
}

/* 찾기 모달 결과창 */
.auth-form .alert-light {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #ffffff26 !important;
    color: #fff !important;
    border-radius: 8px;
}


/* =========================================
   4. 크롬 자동완성 배경색 영구 방지
========================================= */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #3a5c8a inset !important; 
    border: 1px solid #ffffff3b !important;
    caret-color: #ffffff !important;
}


/* =========================================
   5. 반응형 미디어 쿼리
========================================= */
@media (max-width: 1280px) {
    .login-container {
        padding: 3rem 2rem;
    }
    #login-img {
        right: -10%;
    }
}

@media (max-width: 1000px) {
    .login-container {
        width: 70%;
        padding: 5rem 4rem;
    }
    #login-img {
        right: -10%;
    }
}

@media (max-width: 780px) {
    /* 로그인 모바일 */
    .login-container {
        width: 80%;
        padding: 3rem 2rem;
    }
    #login-img {
        display: none;
    }
    .login-bottom {
        flex-direction: column;
        gap: 8px;
    }

    /* 회원가입 모바일 */
    main.signup {
        padding: 100px 15px 40px;
    }
    .signup-card.glass-container {
        padding: 40px 25px;
    }
    .glass-container .signup-form-group {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }
    .glass-container .form-label-custom {
        width: 100%;
        margin-bottom: 10px;
    }
    .glass-container .input-wrapper,
    .glass-container .input-group-custom {
        width: 100%;
    }
    .glass-container .input-group-custom.d-flex.gap-2 {
        flex-direction: column;
    }
    .glass-container .input-group-custom input.input-field {
        width: 100% !important;
        flex: none !important;
    }
    .signup-sub-btn {
        width: 100% !important;
        flex: none !important;
        margin-top: 8px;
    }
    .checkbox-label {
        width: 100%;
    }

    /* 아이디/비밀번호 찾기 모바일 */
    .auth-form .input-group {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .auth-form .input-group .form-control {
        width: 100% !important;
        flex: none !important;
    }
    .auth-form .input-group .btn {
        width: 100% !important;
        flex: none !important;
        margin-top: 8px !important;
    }
}
/* =========================================
   4. 크롬 자동완성 배경색 영구 방지 (우선순위 최상위)
========================================= */
/* 일반 input 요소와 부트스트랩 form-control 요소를 모두 강력하게 타겟팅 */
.glass-container input:-webkit-autofill,
.glass-container input:-webkit-autofill:hover,
.glass-container input:-webkit-autofill:focus,
.glass-container input:-webkit-autofill:active,
.auth-form .form-control:-webkit-autofill,
.auth-form .form-control:-webkit-autofill:hover,
.auth-form .form-control:-webkit-autofill:focus,
.auth-form .form-control:-webkit-autofill:active {
    
    /* 1. 글자색 흰색 유지 */
    -webkit-text-fill-color: #ffffff !important;
    
    /* 2. 모달창 배경과 가장 비슷한 딥 블루/네이비 톤으로 그림자 꽉 채우기 */
    -webkit-box-shadow: 0 0 0px 1000px #2a4b7c inset !important; 
    
    /* 3. 투명 배경 지연 효과 (이중 방어막) */
    transition: background-color 5000s ease-in-out 0s !important;
    
    /* 4. 테두리와 커서 색상 유지 */
    border: 1px solid #ffffff3b !important;
    caret-color: #ffffff !important;
}