/* 최신 스플릿스크린 로그인 페이지 스타일 */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #212529;
  background: #f8f9fa;
}

/* 스플릿 컨테이너 */
.login-split-container {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

/* 왼쪽 패널 - 브랜딩 영역 */
.login-left-panel {
  flex: 1;
  background: linear-gradient(135deg, #0A2342 0%, #1a3556 50%, #0A2342 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px;
}

.login-left-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/phavicon.png');
  background-size: 900px 900px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  filter: blur(3px);
  animation: slowFloat 20s ease-in-out infinite;
}

@keyframes slowFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.login-branding {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 500px;
}

.login-branding h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.login-branding .subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
  line-height: 1.6;
}

.login-branding .features {
  margin-top: 3rem;
  text-align: left;
}

.login-branding .features .feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.login-branding .features .feature-item i {
  margin-right: 1rem;
  font-size: 1.2rem;
  color: #B08D57;
}

/* 오른쪽 패널 - 로그인 폼 영역 */
.login-right-panel {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
  position: relative;
}

.login-form-container {
  width: 100%;
  max-width: 400px;
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.auth-card .card-header {
  background: transparent;
  border: none;
  padding: 0 0 2rem 0;
  margin-bottom: 0;
  text-align: center;
}

.auth-card .card-header h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.auth-card .card-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  letter-spacing: -0.5px;
}


.card-body {
  padding: 0;
}

.card-body p.text-muted {
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.card-body .text-center {
  margin-top: 2rem;
}

.card-body .text-center.mt-3,
.card-body .text-center.mt-4 {
  margin-top: 1.5rem !important;
}

.card-body .text-center.small {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* 폼 스타일링 - 금융적이고 깔끔한 디자인 */
.form-floating {
  position: relative;
  margin-bottom: 1.25rem;
}

.form-floating input,
.form-floating select {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 1.1rem 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  font-size: 1rem;
  color: #1f2937;
  height: 56px;
}

.form-floating input::placeholder {
  color: transparent;
}

.form-floating input:focus,
.form-floating select:focus {
  border-color: #0A2342;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.06);
  outline: none;
}

.form-floating input:hover:not(:focus),
.form-floating select:hover:not(:focus) {
  border-color: #9ca3af;
}

.form-floating label {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0.25rem 0.15rem;
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating select:focus + label,
.form-floating select:not([value=""]) + label {
  color: #0A2342;
  font-weight: 600;
  font-size: 0.875rem;
}

.form-floating i {
  color: #9ca3af;
  margin-right: 0.5rem;
}

.form-select {
  height: 56px;
  cursor: pointer;
}

.form-check-label {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* 버튼 스타일 - 금융적이고 깔끔한 디자인 */
.btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
  border: none;
  height: 48px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #0A2342;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(10, 35, 66, 0.2);
}

.btn-primary:hover {
  background: #1F4E79;
  box-shadow: 0 4px 16px rgba(10, 35, 66, 0.3);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(10, 35, 66, 0.2);
}

.btn-danger {
  background: #ffffff;
  color: #374151;
  border: 1.5px solid #d1d5db;
  box-shadow: none;
}

.btn-danger:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.btn-warning,
.btn-success {
  background: #0A2342;
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(10, 35, 66, 0.2);
}

.btn-warning:hover,
.btn-success:hover {
  background: #1F4E79;
  box-shadow: 0 4px 16px rgba(10, 35, 66, 0.3);
  color: #ffffff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  height: 52px;
}

.btn i {
  transition: transform 0.2s ease;
  margin-right: 0.5rem;
}

.btn:hover i {
  transform: translateX(2px);
}

/* 링크 스타일 */
.auth-card a {
  color: #0A2342;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.auth-card a:hover {
  color: #1F4E79;
  text-decoration: none;
}

.auth-card a i {
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
}

.auth-card a:hover i {
  transform: translateX(-2px);
}

.d-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-grid {
  margin-bottom: 1.5rem;
}

.d-grid.gap-2 {
  gap: 0.75rem;
}

/* 체크박스 */
.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #0A2342;
  border-color: #0A2342;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(10, 35, 66, 0.15);
}

/* 구분선 */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: #9ca3af;
  font-size: 0.875rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.divider::before {
  margin-right: 1rem;
}

.divider::after {
  margin-left: 1rem;
}

/* Alerts */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert.alert-warning {
  background: #fff3cd;
  color: #856404;
}

.alert.alert-danger,
.alert.alert-error {
  background: #f8d7da;
  color: #721c24;
}

/* Footer links */
.text-center.small {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.text-center.small a {
  color: #6b7280;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.text-center.small a:hover {
  color: #0A2342;
}

.text-center.small .mx-2 {
  color: #d1d5db;
}

/* 로딩 인디케이터 */
.spinner-border {
  width: 1.5rem;
  height: 1.5rem;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
  .login-split-container {
    flex-direction: column;
  }
  
  .login-left-panel {
    min-height: 200px;
    padding: 40px;
  }
  
  .login-branding h1 {
    font-size: 2rem;
  }
  
  .login-branding .subtitle {
    font-size: 0.95rem;
  }
  
  .login-branding .features {
    display: none;
  }
  
  .login-right-panel {
    padding: 40px 30px;
  }
  
  .login-form-container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .login-left-panel {
    min-height: 150px;
    padding: 30px 20px;
  }
  
  .login-branding h1 {
    font-size: 1.75rem;
  }
  
  
  .login-right-panel {
    padding: 40px 20px;
  }
  
  .close-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
  
  .close-btn i {
    font-size: 1rem;
  }
  
  .auth-card .card-header h2 {
    font-size: 1.5rem;
  }
  
  .login-flash-messages {
    right: 20px;
    left: 20px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .login-left-panel {
    min-height: 120px;
    padding: 20px;
  }
  
  .login-branding h1 {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
  
  .form-floating input {
    padding: 0.875rem 0.75rem;
  }
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Flash messages */
.flashes {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.flashes li {
  padding: 0.875rem 1.25rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.flashes li.success {
  background: #d4edda;
  color: #155724;
}

.flashes li.error {
  background: #f8d7da;
  color: #721c24;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  cursor: pointer;
}

.close-btn:hover {
  background: #f9fafb;
  border-color: #0A2342;
  color: #0A2342;
  transform: rotate(90deg);
}

.close-btn i {
  font-size: 1.125rem;
}

/* Flash messages container */
.login-flash-messages {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 1050;
  max-width: 400px;
  animation: slideInRight 0.5s ease-out;
}

/* Text muted */
.text-muted {
  color: #6c757d;
  font-size: 0.9rem;
}

/* 그라데이션 오버레이 제거 */
.auth-background {
  background: #f8f9fa;
}

/* 캡차 슬라이더 스타일 */
.captcha-container {
  margin: 1rem 0;
}

.captcha-slider {
  position: relative;
  width: 100%;
  height: 50px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.captcha-slider:hover {
  border-color: #0A2342;
  background: #f1f3f4;
}

.captcha-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-handle {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.captcha-handle:hover {
  border-color: #0A2342;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.captcha-handle:active {
  cursor: grabbing;
  transform: scale(1.05);
}

.captcha-handle i {
  color: #6c757d;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.captcha-text {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  user-select: none;
  transition: all 0.3s ease;
}

/* 슬라이더 완료 상태 */
.captcha-slider.completed {
  background: #d4edda;
  border-color: #28a745;
}

.captcha-slider.completed .captcha-handle {
  background: #28a745;
  border-color: #28a745;
  left: calc(100% - 44px);
}

.captcha-slider.completed .captcha-handle i {
  color: #ffffff;
  transform: rotate(0deg);
}

.captcha-slider.completed .captcha-text {
  color: #28a745;
  font-weight: 600;
}

/* 성공 메시지 */
.captcha-success {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #28a745;
  font-weight: 500;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .captcha-slider {
    height: 45px;
  }
  
  .captcha-handle {
    width: 37px;
    height: 37px;
  }
  
  .captcha-text {
    font-size: 0.85rem;
  }
}

  