/* =======================
   GLOBAL FONT STYLING
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #0088cc 0%, #0088cc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    color: #1e293b;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .main-title {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 28px;
    color: #0088cc;
    margin-bottom: 5px;
  }

  .sub-title,
  .university-name {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
  }

  .sub-title {
    font-size: 16px;
    font-weight: 600;
    color: #0088cc;
    margin-top: 10px;
  }

  .university-name {
    font-size: 12px;
    color: #6b7280;
  }

  /* =======================
   BACKGROUND & SHAPES
======================= */
  .background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(
        135deg,
        rgba(0, 136, 204, 0.6) 0%,
        rgba(0, 90, 153, 0.6) 25%,
        rgba(0, 61, 107, 0.6) 50%,
        rgba(0, 136, 204, 0.6) 75%,
        rgba(0, 163, 224, 0.6) 100%
      ),
      url("../images/bg.jpg");
    background-size:
      400% 400%,
      cover;
    background-position:
      0% 50%,
      center;
    background-repeat: no-repeat, no-repeat;
    animation: gradientShift 15s ease infinite;
    z-index: -10;
    overflow: hidden;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* =======================
   NOTIFLIX INTEGRATION
======================= */
/* Notiflix styling akan diambil dari notiflix.css */

/* =======================
   LOADING OVERLAY
======================= */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.loading-spinner i {
  font-size: 32px;
  color: #0088cc;
  margin-bottom: 16px;
}

.loading-spinner p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* =======================
   CONTROL BUTTONS
======================= */
.control-buttons {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.control-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn i {
  font-size: 18px;
  color: #333;
}

/* =======================
   RIPPLE EFFECT
======================= */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* =======================
   LOGIN BOX
======================= */
.login-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 40px 30px;
  width: 100%;
  max-width: 420px;
  transition: all 0.3s ease;
}

.login-header {
  text-align: center;
  margin-bottom: 15px;
}

.logo {
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =======================
   FORM SYSTEM
======================= */
.form-views {
  position: relative;
  overflow: hidden;
}

.view {
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-view {
  display: block;
  transform: translateX(0);
}

.forgot-view {
  display: none;
  transform: translateX(0);
}

/* Show forgot password state */
.login-box.show-forgot .login-view {
  display: none;
  transform: translateX(-100%);
}

.login-box.show-forgot .forgot-view {
  display: block;
  transform: translateX(0);
}

/* Transitioning states */
.login-box.transitioning {
  position: relative;
}

.login-box.transitioning .view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.login-box.transitioning .login-view {
  display: block;
}

.login-box.transitioning .forgot-view {
  display: block;
}

/* Slide animations */
.login-view.slide-out-left {
  transform: translateX(-100%);
}

.forgot-view.slide-in-right {
  transform: translateX(0);
}

.forgot-view.slide-out-right {
  transform: translateX(100%);
}

.input-group {
  margin-bottom: 16px;
}

/* =======================
   RESET INFO BOX
======================= */
.reset-info {
  background: linear-gradient(145deg, #e6f3ff, #cce7ff);
  border: 1px solid #0088cc;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.1);
}

.reset-info p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #0066cc;
  line-height: 1.4;
}

.reset-info i {
  color: #0088cc;
  font-size: 14px;
  flex-shrink: 0;
}

[data-theme="dark"] .reset-info {
  background: linear-gradient(145deg, #1e3a5f, #2d4f73);
  border-color: #4a90c2;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
}

[data-theme="dark"] .reset-info p {
  color: #87ceeb;
}

[data-theme="dark"] .reset-info i {
  color: #4a90c2;
}

/* =======================
   PASSWORD RESET INFO BOX
======================= */
.password-reset-info {
  background: linear-gradient(145deg, #f0f9ff, #e0f2fe);
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.password-reset-info i {
  color: #0ea5e9;
  font-size: 14px;
  flex-shrink: 0;
}

.password-reset-info span {
  font-size: 13px;
  font-weight: 500;
  color: #0c4a6e;
  line-height: 1.4;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Dark theme untuk password reset info */
[data-theme="dark"] .password-reset-info {
  background: linear-gradient(145deg, #1e3a5f, #2d4f73);
  border-color: #0ea5e9;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

[data-theme="dark"] .password-reset-info i {
  color: #38bdf8;
}

[data-theme="dark"] .password-reset-info span {
  color: #bae6fd;
}

.input-field {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  padding: 0 12px;
  transition: all 0.3s ease;
}

.input-field i {
  color: #94a3b8;
  margin-right: 10px;
}

.input-field input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  outline: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.input-field input::placeholder {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.input-field:focus-within {
  border-color: #0088cc;
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

label {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* =======================
   ADVANCED CAPTCHA SYSTEM
======================= */
.captcha-container {
  margin: 20px 0;
  padding: 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slide-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.captcha-container.entering {
  opacity: 0;
  transform: translateY(20px);
}

.captcha-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0088cc, #8b5cf6, #ef4444, #10b981);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: border-flow 4s ease-in-out infinite;
}

.captcha-container:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.captcha-container:hover::before {
  opacity: 1;
}

.captcha-container.verified {
  background: linear-gradient(145deg, #f0fdf4, #dcfce7);
  box-shadow:
    0 8px 32px rgba(16, 185, 129, 0.2),
    0 2px 8px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: float-captcha 2s ease-in-out infinite;
}

.captcha-container.verified::before {
  background: linear-gradient(90deg, #10b981, #059669);
  opacity: 1;
}

.captcha-container.error {
  background: linear-gradient(145deg, #fef2f2, #fee2e2);
  box-shadow:
    0 8px 32px rgba(239, 68, 68, 0.2),
    0 2px 8px rgba(239, 68, 68, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: shake 0.5s ease-in-out;
}

.captcha-container.error::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  opacity: 1;
}

.captcha-question {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  color: #1f2937;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.captcha-question i {
  color: #0088cc;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0, 136, 204, 0.2);
}

.captcha-refresh {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  flex-shrink: 0;
  box-shadow:
    0 3px 12px rgba(0, 136, 204, 0.3),
    0 1px 3px rgba(0, 136, 204, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.captcha-refresh::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.captcha-refresh:hover {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  transform: rotate(180deg) translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 136, 204, 0.4),
    0 3px 6px rgba(0, 136, 204, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 20px rgba(0, 136, 204, 0.2);
}

.captcha-refresh:hover::before {
  width: 80px;
  height: 80px;
}

.captcha-refresh:active {
  transform: rotate(180deg) scale(0.95) translateY(-1px);
  transition: transform 0.1s ease;
}

.captcha-refresh:disabled {
  background: linear-gradient(145deg, #9ca3af, #6b7280);
  cursor: not-allowed;
  opacity: 0.5;
}

.captcha-refresh:disabled:hover {
  transform: none;
  background: linear-gradient(145deg, #9ca3af, #6b7280);
  box-shadow:
    0 3px 12px rgba(156, 163, 175, 0.3),
    0 1px 3px rgba(156, 163, 175, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.captcha-refresh:disabled i {
  color: #d1d5db;
}

.captcha-refresh i {
  font-size: 16px;
  color: white;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.captcha-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.captcha-option {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px solid #e2e8f0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: #374151;
  letter-spacing: 0.01em;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.captcha-option::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 136, 204, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.captcha-option:hover {
  border-color: #0088cc;
  background: linear-gradient(145deg, #e6f3ff, #cce7ff);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 4px 16px rgba(0, 136, 204, 0.2),
    0 2px 4px rgba(0, 136, 204, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 15px rgba(0, 136, 204, 0.1);
  color: #0088cc;
}

.captcha-option:hover::before {
  width: 60px;
  height: 60px;
}

.captcha-option:active,
.captcha-refresh:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.captcha-option.selected {
  border-color: #0088cc;
  background: linear-gradient(145deg, #cce7ff, #99d6ff);
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 6px 20px rgba(0, 136, 204, 0.3),
    0 2px 6px rgba(0, 136, 204, 0.2);
  color: #0088cc;
  animation: pulse-selected 0.6s ease;
  position: relative;
  overflow: visible;
}

.captcha-option.selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 136, 204, 0.6) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: particle-burst 0.6s ease-out forwards;
  pointer-events: none;
  z-index: -1;
}

.captcha-option.correct {
  border-color: #10b981;
  background: linear-gradient(145deg, #d1fae5, #a7f3d0);
  color: #065f46;
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 8px 25px rgba(16, 185, 129, 0.4),
    0 3px 8px rgba(16, 185, 129, 0.3);
  animation: success-bounce 0.8s ease;
}

.captcha-option.incorrect {
  border-color: #ef4444;
  background: linear-gradient(145deg, #fee2e2, #fecaca);
  color: #991b1b;
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  animation: error-shake 0.5s ease;
}

.captcha-option:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.captcha-option:focus,
.captcha-refresh:focus {
  outline: 2px solid #0088cc;
  outline-offset: 2px;
}

/* =======================
   CAPTCHA ANIMATIONS
======================= */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes pulse-selected {
  0% {
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
  }
  50% {
    box-shadow: 0 8px 28px rgba(0, 136, 204, 0.5);
  }
  100% {
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
  }
}

@keyframes success-bounce {
  0%,
  100% {
    transform: translateY(-3px) scale(1.05);
  }
  50% {
    transform: translateY(-6px) scale(1.08);
  }
}

@keyframes error-shake {
  0%,
  100% {
    transform: translateX(0) scale(0.95);
  }
  25% {
    transform: translateX(-3px) scale(0.95);
  }
  75% {
    transform: translateX(3px) scale(0.95);
  }
}

@keyframes float-captcha {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes particle-burst {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

@keyframes border-flow {
  0%,
  100% {
    background: linear-gradient(90deg, #0088cc, #8b5cf6, #ef4444, #10b981);
  }
  25% {
    background: linear-gradient(90deg, #8b5cf6, #ef4444, #10b981, #0088cc);
  }
  50% {
    background: linear-gradient(90deg, #ef4444, #10b981, #0088cc, #8b5cf6);
  }
  75% {
    background: linear-gradient(90deg, #10b981, #0088cc, #8b5cf6, #ef4444);
  }
}

@keyframes slide-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   BUTTON SYSTEM
======================= */
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.login-btn {
  flex: 1;
  background: linear-gradient(145deg, #0088cc, #0088cc);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow:
    0 3px 12px rgba(0, 136, 204, 0.3),
    0 1px 3px rgba(0, 136, 204, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.login-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 136, 204, 0.4),
    0 3px 6px rgba(0, 136, 204, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-btn:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.login-btn:disabled {
  background: linear-gradient(145deg, #9ca3af, #6b7280);
  cursor: not-allowed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.forgot-btn {
  flex: 1;
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: white;
  border: 2px solid #ef4444;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow:
    0 3px 12px rgba(239, 68, 68, 0.3),
    0 1px 3px rgba(239, 68, 68, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.forgot-btn:hover {
  background: linear-gradient(145deg, #f87171, #ef4444);
  border-color: #f87171;
  color: white;
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(239, 68, 68, 0.4),
    0 3px 6px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.forgot-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* =======================
   LOGIN LINKS
======================= */
.login-links {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: 13px;
}

.login-links a {
  color: #0088cc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-block;
}

.login-links a:hover {
  color: #0066aa;
  text-decoration: underline;
}

.login-links .divider {
  color: #0088cc;
  margin: 0 8px;
}

[data-theme="dark"] .login-links a {
  color: #38bdf8;
}

[data-theme="dark"] .login-links a:hover {
  color: #0ea5e9;
}

[data-theme="dark"] .login-links .divider {
  color: #93c5fd;
}

/* =======================
   FOOTER
======================= */
.login-footer {
  text-align: center;
  margin-top: 0px;
  font-size: 12px;
  color: #94a3b8;
}

/* =======================
   DARK THEME
======================= */
[data-theme="dark"] .background {
  background:
    linear-gradient(
      135deg,
      rgba(26, 26, 46, 0.7) 0%,
      rgba(22, 33, 62, 0.7) 25%,
      rgba(15, 52, 96, 0.7) 50%,
      rgba(26, 26, 46, 0.7) 75%,
      rgba(45, 55, 72, 0.7) 100%
    ),
    url("../images/bg.jpg");
  background-size:
    400% 400%,
    cover;
  background-position:
    0% 50%,
    center;
  background-repeat: no-repeat, no-repeat;
  animation: gradientShift 15s ease infinite;
  filter: brightness(0.7) contrast(1.1);
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0088cc 100%);
  color: #e5e7eb;
}

[data-theme="dark"] .control-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

[data-theme="dark"] .control-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .control-btn i {
  color: white;
}

[data-theme="dark"] .loading-spinner {
  background: #1f2937;
  color: white;
}

[data-theme="dark"] .login-box {
  background: rgba(30, 41, 59, 0.9);
}

[data-theme="dark"] .input-field {
  background: rgba(255, 255, 255, 0.05);
  border-color: #374151;
}

[data-theme="dark"] .input-field input {
  color: #f1f5f9;
}

[data-theme="dark"] .captcha-container {
  background: linear-gradient(145deg, #1f2937, #111827);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .captcha-container:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .captcha-container.verified {
  background: linear-gradient(145deg, #064e3b, #042f2e);
  box-shadow:
    0 8px 32px rgba(16, 185, 129, 0.3),
    0 2px 8px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .captcha-container.error {
  background: linear-gradient(145deg, #7f1d1d, #5f1c1c);
  box-shadow:
    0 8px 32px rgba(239, 68, 68, 0.3),
    0 2px 8px rgba(239, 68, 68, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .captcha-question {
  color: #f9fafb;
}

[data-theme="dark"] .captcha-question i {
  color: #8b5cf6;
  text-shadow: 0 1px 2px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .captcha-refresh {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  box-shadow:
    0 3px 12px rgba(37, 99, 235, 0.4),
    0 1px 3px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .captcha-refresh:hover {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.5),
    0 3px 6px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .captcha-option {
  background: linear-gradient(145deg, #374151, #1f2937);
  border-color: #4b5563;
  color: #f9fafb;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .captcha-option::before {
  background: rgba(0, 136, 204, 0.2);
}

[data-theme="dark"] .captcha-option:hover {
  border-color: #0088cc;
  background: linear-gradient(145deg, #0088cc, #0088cc);
  color: #0088cc;
  box-shadow:
    0 6px 20px rgba(0, 136, 204, 0.3),
    0 2px 6px rgba(0, 136, 204, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .captcha-option.selected {
  border-color: #f59e0b;
  background: linear-gradient(145deg, #92400e, #78350f);
  color: #fed7aa;
  box-shadow:
    0 8px 25px rgba(245, 158, 11, 0.4),
    0 3px 8px rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .captcha-option.correct {
  border-color: #10b981;
  background: linear-gradient(145deg, #064e3b, #065f46);
  color: #a7f3d0;
  box-shadow:
    0 8px 25px rgba(16, 185, 129, 0.5),
    0 3px 8px rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .captcha-option.incorrect {
  border-color: #ef4444;
  background: linear-gradient(145deg, #7f1d1d, #991b1b);
  color: #fca5a5;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

[data-theme="dark"] .captcha-option:focus,
[data-theme="dark"] .captcha-refresh:focus {
  outline-color: #8b5cf6;
}

[data-theme="dark"] .login-btn {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  box-shadow:
    0 4px 16px rgba(37, 99, 235, 0.4),
    0 2px 4px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .login-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #0088cc, #0088cc);
  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.5),
    0 3px 6px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .forgot-btn {
  background: linear-gradient(145deg, #dc2626, #b91c1c);
  border-color: #dc2626;
  color: white;
  box-shadow:
    0 3px 12px rgba(220, 38, 38, 0.3),
    0 1px 3px rgba(220, 38, 38, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .forgot-btn:hover {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  border-color: #ef4444;
  color: white;
  box-shadow:
    0 6px 20px rgba(239, 68, 68, 0.4),
    0 3px 6px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* =======================
   RESPONSIVE DESIGN
======================= */
@media (max-width: 768px) {
  .login-box {
    padding: 25px 20px;
  }

  .main-title {
    font-size: 26px;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
  }

  .main-title:hover {
    transform: translateY(-1px) scale(1.03) rotateX(5deg);
  }

  .logo {
    width: 220px;
  }

  .button-group {
    flex-direction: column;
    gap: 10px;
  }

  .login-btn,
  .forgot-btn {
    padding: 8px 12px;
    font-size: 13px;
    gap: 4px;
  }

  .captcha-container {
    padding: 16px;
    border-radius: 12px;
  }

  .captcha-option,
  .captcha-refresh {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .captcha-option {
    font-size: 12px;
  }

  .captcha-refresh i {
    font-size: 12px;
  }
}

/* =======================
   ADDITIONAL STYLES FROM LOGIN.HTML
======================= */
/* Tambahan efek keren dan modern */
.captcha-container {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Floating animation untuk captcha container */
@keyframes float-captcha {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.captcha-container.verified {
  animation: float-captcha 2s ease-in-out infinite;
}

/* Glow effect saat hover */
.captcha-option:hover {
  box-shadow:
    0 4px 16px rgba(0, 136, 204, 0.2),
    0 2px 4px rgba(0, 136, 204, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 15px rgba(0, 136, 204, 0.1);
}

.captcha-refresh:hover {
  box-shadow:
    0 6px 20px rgba(0, 136, 204, 0.4),
    0 3px 6px rgba(0, 136, 204, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 20px rgba(0, 136, 204, 0.2);
}

/* Particle effect saat click */
.captcha-option.selected {
  position: relative;
  overflow: visible;
}

.captcha-option.selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 136, 204, 0.6) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: particle-burst 0.6s ease-out forwards;
  pointer-events: none;
  z-index: -1;
}

/* Border gradient animation */
.captcha-container::before {
  animation: border-flow 4s ease-in-out infinite;
}

/* Smooth entrance animation */
.captcha-container {
  animation: slide-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 1;
  transform: translateY(0);
}

.captcha-container.entering {
  opacity: 0;
  transform: translateY(20px);
}

/* Button press effect */
.captcha-option:active,
.captcha-refresh:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.captcha-refresh:active {
  transform: rotate(180deg) scale(0.95) translateY(-1px);
}

/* Focus states untuk accessibility */
.captcha-option:focus,
.captcha-refresh:focus {
  outline: 2px solid #0088cc;
  outline-offset: 2px;
}

[data-theme="dark"] .captcha-option:focus,
[data-theme="dark"] .captcha-refresh:focus {
  outline-color: #8b5cf6;
}

/* Input Fields Font Styling */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="checkbox"] {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

input::placeholder {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

label {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Notiflix Toast styling - handled by notiflix.css */

/* Loading spinner text */
.loading-spinner p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* =======================
   MOBILE TRANSITION OPTIMIZATIONS
======================= */
@media (max-width: 768px) {
  .form-views {
    min-height: 280px; /* Reduced for mobile */
  }

  .view {
    /* Faster transitions on mobile */
    transition:
      transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      opacity 0.25s ease;
  }

  .login-box.transitioning {
    /* Less aggressive scaling on mobile */
    transform: scale(0.99);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

/* iOS Safari transition optimizations */
@supports (-webkit-touch-callout: none) {
  .view {
    /* iOS Safari optimization */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }
}
