/* Modern CSS Variables */
:root {
  --primary-color: #dc2626;
  --primary-dark: #991b1b;
  --primary-light: #fecaca;
  --secondary-color: #1f2937;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  --light-bg: #f8fafc;
  --border-color: #e5e7eb;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --gradient-primary: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
  --gradient-secondary: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Source Sans Pro', sans-serif;
  overflow-x: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* Ana container'ı ortala */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  z-index: 2;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
}

.login-box {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-logo {
  text-align: center;
  margin-bottom: 35px;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  25% { 
    transform: translateY(-8px) rotate(1deg); 
  }
  75% { 
    transform: translateY(-12px) rotate(-1deg); 
  }
}

.login-logo img {
  max-width: 120px;
  margin-bottom: 25px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  padding: 15px;
  backdrop-filter: blur(10px);
}

.login-logo img:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 20px 40px rgba(220, 38, 38, 0.6));
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(255, 255, 255, 0.1));
}

.login-title {
  color: #ffffff;
  text-align: center;
  margin-top: 20px;
  font-size: 1.4em;
  font-weight: 700;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { 
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  }
  to { 
    filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.5));
  }
}

/* Ultra Modern Glassmorphism Card */
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 16px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
  background-size: 200% 100%;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 28px;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
}

.login-card-body {
  padding: 45px 35px !important;
  position: relative;
}

.login-box-msg {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 35px;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  animation: messagePulse 2s ease-in-out infinite;
}

@keyframes messagePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Ultra Modern Form Styling */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group .form-label {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.form-group .form-label i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.form-group:hover .form-label {
  color: var(--primary-light);
  transform: translateX(5px);
}

.form-group:hover .form-label i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.5));
}

.form-control {
  height: 56px;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 
    0 0 0 6px rgba(220, 38, 38, 0.2),
    0 8px 25px rgba(220, 38, 38, 0.3);
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px) scale(1.02);
}

.form-control:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Şube Seçimi için özel stiller */
.sube-selector-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sube-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 60px 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  width: 100%;
  height: 56px;
}

.sube-selector:focus {
  border-color: var(--primary-color);
  box-shadow: 
    0 0 0 6px rgba(220, 38, 38, 0.2),
    0 8px 25px rgba(220, 38, 38, 0.3);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px) scale(1.02);
  outline: none;
}

.sube-selector:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.sube-selector-arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--primary-color);
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sube-selector:focus + .sube-selector-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: var(--primary-color);
  filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.5));
}

.sube-selector option {
  background: #1f2937;
  color: #ffffff;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
}

.sube-selector option:hover {
  background: var(--primary-color);
  color: white;
}

.sube-selector option:checked {
  background: var(--primary-color);
  color: white;
}

/* Input Group Styling */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-bottom: 25px;
}

.input-group .form-control {
  border-radius: 16px 0 0 16px;
  border-right: none;
}

.input-group-append {
  display: flex;
  margin-left: -1px;
}

.input-group-append button {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-left: none;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 16px 16px 0;
  min-width: 60px;
  backdrop-filter: blur(15px);
}

.input-group-append button:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.input-group-append button i {
  font-size: 20px !important;
  color: var(--primary-color) !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.input-group:hover .input-group-append button i {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.5));
}

/* Ultra Modern Button Styling */
.custom-red-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-weight: 700;
  font-size: 17px;
  padding: 20px 45px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 15px 40px rgba(220, 38, 38, 0.4),
    0 8px 20px rgba(220, 38, 38, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  backdrop-filter: blur(10px);
}

.custom-red-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.8s ease;
}

.custom-red-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 18px;
  transition: opacity 0.3s ease;
}

.custom-red-btn:hover::before {
  left: 100%;
}

.custom-red-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 
    0 25px 60px rgba(220, 38, 38, 0.5),
    0 12px 30px rgba(220, 38, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none !important;
}

.custom-red-btn:active {
  transform: translateY(-3px) scale(0.98);
  transition: all 0.1s ease;
}

.custom-black-btn {
  background: var(--gradient-secondary);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  font-weight: 600;
  font-size: 16px;
  padding: 18px 35px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 12px 35px rgba(31, 41, 55, 0.4),
    0 6px 18px rgba(31, 41, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  backdrop-filter: blur(10px);
}

.custom-black-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.8s ease;
}

.custom-black-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  border-radius: 50%;
}

.custom-black-btn:hover::before {
  left: 100%;
}

.custom-black-btn:hover::after {
  width: 120px;
  height: 120px;
}

.custom-black-btn:hover {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(31, 41, 55, 0.5),
    0 10px 25px rgba(31, 41, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  text-decoration: none !important;
}

.custom-black-btn:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.1s ease;
}

/* Button Focus States */
.custom-red-btn:focus,
.custom-black-btn:focus {
  outline: none;
  box-shadow: 
    0 0 0 6px rgba(220, 38, 38, 0.4),
    0 20px 50px rgba(31, 41, 55, 0.5);
}

.custom-red-btn:focus {
  box-shadow: 
    0 0 0 6px rgba(220, 38, 38, 0.4),
    0 25px 60px rgba(220, 38, 38, 0.5);
}

/* Modern Checkbox Styling */
.icheck-primary {
    margin-bottom: 25px;
}

.icheck-primary input[type="checkbox"] {
    display: none;
}

.icheck-primary label {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.icheck-primary label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.icheck-primary label:hover::before {
  left: 100%;
}

.icheck-primary label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.icheck-primary input[type="checkbox"]:checked + label {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.4);
    color: var(--primary-light);
    font-weight: 700;
}

.icheck-primary label i {
    margin-right: 15px;
    font-size: 20px;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.icheck-primary input[type="checkbox"]:checked + label i {
  transform: scale(1.2);
  filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.6));
}

/* Modern Alert Styling */
.alert {
    border-radius: 16px;
    border: none;
    padding: 22px;
    margin-bottom: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 18px;
    backdrop-filter: blur(20px);
    animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca;
    border-left: 5px solid #dc2626;
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
    border-left: 5px solid #10b981;
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
    border-left: 5px solid #f59e0b;
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Enhanced Video Background Styling */
.video-background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
  aspect-ratio: 16/9;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  filter: brightness(0.7) contrast(1.2) saturate(1.1);
  transition: filter 0.5s ease;
}

.video-background:hover {
  filter: brightness(0.8) contrast(1.3) saturate(1.2);
}

/* Mobil cihazlar için responsive ayarlar */
@media (max-aspect-ratio: 16/9) {
  .video-background {
    width: 177.78vh;
    height: 100vh;
    min-width: 177.78vh;
    min-height: 100vh;
  }
}

@media (min-aspect-ratio: 16/9) {
  .video-background {
    width: 100vw;
    height: 56.25vw;
    min-width: 100vw;
    min-height: 56.25vw;
  }
}

/* Mobil responsive tasarım */
@media (max-width: 768px) {
  .login-box {
    max-width: 100%;
    margin: 15px;
  }
  
  .login-logo img {
    max-width: 80px;
    padding: 12px;
  }
  
  .login-title {
    font-size: 1.1em;
  }
  
  .card {
    border-radius: 24px;
  }
  
  .login-card-body {
    padding: 30px 20px !important;
  }
  
  .form-control,
  .sube-selector {
    min-height: 50px;
    font-size: 16px;
  }
  
  .input-group-append button {
    min-height: 50px;
    min-width: 50px;
  }
  
  .custom-red-btn,
  .custom-black-btn {
    min-height: 54px;
    font-size: 16px;
    padding: 16px 30px;
  }
}

/* Küçük mobil cihazlar için ek optimizasyonlar */
@media (max-width: 480px) {
  .login-box {
    margin: 10px;
  }
  
  .login-card-body {
    padding: 25px 15px !important;
  }
  
  .login-title {
    font-size: 1em;
  }
  
  .form-control,
  .sube-selector {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .custom-red-btn,
  .custom-black-btn {
    padding: 14px 25px;
    font-size: 15px;
  }
}

/* Tablet boyutları için optimizasyonlar */
@media (min-width: 769px) and (max-width: 1024px) {
  .login-box {
    max-width: 520px;
  }
  
  .login-logo img {
    max-width: 100px;
    padding: 18px;
  }
  
  .login-title {
    font-size: 1.3em;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: -1;
}

/* Enhanced Form Validation */
.form-control.is-invalid {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.2);
  animation: shake 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Enhanced Success States */
.form-control.is-valid {
  border-color: var(--success-color);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2);
  animation: successPulse 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Enhanced Button Icon Animations */
.custom-red-btn i,
.custom-black-btn i {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  margin-right: 8px;
}

.custom-red-btn:hover i {
  transform: translateX(4px) scale(1.15);
  filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 0.4));
}

.custom-black-btn:hover i {
  transform: translateX(3px) rotate(8deg) scale(1.1);
  filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 0.3));
}

/* Enhanced Loading States */
.custom-red-btn.loading {
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.custom-red-btn.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
  border: 3px solid transparent;
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  z-index: 2;
}

.custom-red-btn.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 18px;
  z-index: 1;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Focus Transitions */
.form-control,
.sube-selector,
.input-group-append button,
.custom-red-btn,
.custom-black-btn,
.icheck-primary label {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow, border-color;
}

/* Enhanced Accessibility */
.form-control:focus,
.sube-selector:focus,
.custom-red-btn:focus,
.custom-black-btn:focus {
  outline: none;
}

.form-control:focus-visible,
.sube-selector:focus-visible,
.custom-red-btn:focus-visible,
.custom-black-btn:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Enhanced Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .form-control {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
  }
  
  .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
  }
  
  .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
}

/* Enhanced Animation Performance */
.form-control,
.sube-selector,
.input-group-append button,
.custom-red-btn,
.custom-black-btn,
.icheck-primary label {
  will-change: transform, box-shadow, border-color;
}

/* Enhanced Success Animation */
.form-control.is-valid {
  animation: successGlow 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successGlow {
  0% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.4); }
  100% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2); }
}

/* Enhanced Error Animation */
.form-control.is-invalid {
  animation: errorShake 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Enhanced Form Container */
.login-card-body {
  position: relative;
  overflow: hidden;
}

.login-card-body::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  animation: rotate 25s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Enhanced Button Container */
.row > [class*="col-"] {
  transition: all 0.3s ease;
}

.row > [class*="col-"]:hover {
  transform: translateX(5px);
}

/* Enhanced Form Group Focus */
.form-group.focused .form-label {
  color: var(--primary-light);
  transform: translateY(-3px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group.focused .form-label i {
  transform: scale(1.2);
  filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.6));
}

/* Enhanced Input Group Focus */
.input-group:focus-within {
  transform: translateY(-3px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group:focus-within .form-control {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.2);
}

/* Enhanced Placeholder Styling */
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus::placeholder {
  color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

/* Enhanced Label Animations */
.form-label {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.form-label i {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Checkbox Interactions */
.icheck-primary label {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Enhanced Button Hover Effects */
.custom-red-btn:hover,
.custom-black-btn:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .form-control {
    font-size: 16px;
    min-height: 50px;
  }
  
  .input-group-append button {
    min-height: 50px;
    min-width: 50px;
  }
  
  .custom-red-btn,
  .custom-black-btn {
    min-height: 54px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .login-card-body {
    padding: 25px 15px !important;
  }
  
  .form-control {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .custom-red-btn,
  .custom-black-btn {
    padding: 14px 25px;
    font-size: 15px;
  }
}

/* Ultra Modern Video Control Buttons */
.video-controls {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  gap: 15px;
  animation: slideInRight 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4));
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.control-btn {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.9) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(25px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50%;
  transition: opacity 0.4s ease;
}

.control-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  border-radius: 50%;
}

.control-btn:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(239, 68, 68, 0.9) 100%);
  transform: translateY(-8px) scale(1.1);
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 
    0 25px 50px rgba(220, 38, 38, 0.5),
    0 15px 35px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.control-btn:hover::after {
  width: 80px;
  height: 80px;
}

.control-btn:active {
  transform: translateY(-4px) scale(0.98);
  transition: all 0.1s ease;
}

.control-btn i {
  color: #ffffff;
  font-size: 22px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  z-index: 2;
  position: relative;
}

.control-btn:hover i {
  color: #ffffff;
  transform: scale(1.2);
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.4));
}

/* Specific button styles */
.control-btn#soundToggle:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(34, 197, 94, 0.9) 100%);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 
    0 30px 60px rgba(16, 185, 129, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.6);
}

.control-btn#playPauseToggle:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(239, 68, 68, 0.9) 100%);
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 
    0 30px 60px rgba(220, 38, 38, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Active button state */
.control-btn.active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(239, 68, 68, 0.9) 100%);
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 
    0 20px 40px rgba(220, 38, 38, 0.4),
    0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-controls {
    top: 20px;
    right: 20px;
    gap: 12px;
  }
  
  .control-btn {
    width: 52px;
    height: 52px;
  }
  
  .control-btn i {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .video-controls {
    top: 15px;
    right: 15px;
    gap: 10px;
  }
  
  .control-btn {
    width: 48px;
    height: 48px;
  }
  
  .control-btn i {
    font-size: 18px;
  }
}

/* Enhanced Video Progress Bar */
.progress-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: none;
  height: 8px;
  background: rgba(30, 30, 30, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-radius: 0;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(15px);
}

.progress-container:hover {
  height: 24px;
  background: rgba(30, 30, 30, 0.6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 25px 6px rgba(220, 38, 38, 0.7);
  border-radius: 0;
  transition: width 0.1s linear, box-shadow 0.4s;
  animation: progress-glow 4s infinite alternate, progress-shift 5s infinite linear;
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s infinite;
}

@keyframes progress-glow {
  from { 
    box-shadow: 0 0 25px 6px rgba(220, 38, 38, 0.7);
  }
  to { 
    box-shadow: 0 0 35px 10px rgba(245, 158, 11, 0.9);
  }
}

@keyframes progress-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}




