:root {
      --primary-color: #FF9933;
      --primary-hover: #FF7A1F;
      --secondary-color: #138808;
      --tertiary-color: #000080;
      --saffron: #FF9933;
      --saffron-light: #FFB366;
      --saffron-lighter: #FFE5CC;
      --bg-white: #FFFFFF;
      --bg-cream: #FFF9F0;
      --bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #FFF9F0 50%, #FFEFE0 100%);
      --card-bg: rgba(255, 255, 255, 0.95);
      --text-dark: #2C1810;
      --text-primary: #4A2C1A;
      --text-gray: #8B6F47;
      --text-secondary: #FF9933;
      --error-red: #E63946;
      --glass-border: rgba(255, 153, 51, 0.25);
      --shadow-soft: 0 10px 40px rgba(255, 153, 51, 0.12);
      --shadow-hover: 0 15px 50px rgba(255, 153, 51, 0.2);
      --font-family: 'Hind Madurai', sans-serif;
      --font-family-ta: 'Hind Madurai', sans-serif;
}

body.lang-ta {
      font-family: var(--font-family-ta);
}

.language-selector {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      margin-bottom: 24px;
}

.lang-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-gray);
      transition: color 0.3s ease;
      letter-spacing: 0.05em;
}

#langToggle:checked~.lang-label:last-child,
#langToggle:not(:checked)~.lang-label:first-child {
      color: var(--saffron);
}

/* Toggle Switch */
.switch {
      position: relative;
      display: inline-block;
      width: 40px;
      height: 20px;
}

.switch input {
      opacity: 0;
      width: 0;
      height: 0;
}

.slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(255, 153, 51, 0.15);
      transition: .4s;
      border: 2px solid rgba(255, 153, 51, 0.3);
}

.slider:before {
      position: absolute;
      content: "";
      height: 14px;
      width: 14px;
      left: 2px;
      bottom: 2px;
      background: linear-gradient(135deg, #FF9933, #FFB366);
      transition: .4s;
      box-shadow: 0 2px 6px rgba(255, 153, 51, 0.4);
}

input:checked+.slider {
      background-color: rgba(255, 153, 51, 0.25);
      border-color: var(--saffron);
}

input:checked+.slider:before {
      transform: translateX(20px);
}

.slider.round {
      border-radius: 20px;
}

.slider.round:before {
      border-radius: 50%;
}


* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
}

body {
      font-family: var(--font-family);
      background: var(--bg-gradient);
      background-attachment: fixed;
      color: var(--text-dark);
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
}

/* Background Animations */
.background-blobs {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      overflow: hidden;
}

.blob {
      position: absolute;
      border-radius: 50%;
      filter: blur(120px);
      opacity: 0.15;
      animation: move 25s infinite alternate;
}

.blob-1 {
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, #FFE5CC 0%, #FFB366 100%);
      top: -200px;
      left: -200px;
}

.blob-2 {
      width: 550px;
      height: 550px;
      background: radial-gradient(circle, #FFD9B3 0%, #FF9933 100%);
      bottom: -200px;
      right: -200px;
      animation-delay: -8s;
}

.blob-3 {
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, #FFCC99 0%, #FFB366 100%);
      top: 50%;
      right: 5%;
      animation-delay: -15s;
}

@keyframes move {
      from {
            transform: translate(0, 0) scale(1);
      }

      to {
            transform: translate(40px, 60px) scale(1.1);
      }
}

/* Login Card */
.login-container {
      width: 100%;
      max-width: 440px;
      padding: 20px;
      z-index: 10;
      position: relative;
}

.login-card {
      background: var(--card-bg);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 2px solid var(--glass-border);
      border-radius: 32px;
      padding: 48px 40px;
      box-shadow: var(--shadow-soft);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
      overflow: visible;
}

.login-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-hover);
}

.login-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 5px;
      background: linear-gradient(to right, #FF9933, #FFB366, #FF9933);
      border-radius: 32px 32px 0 0;
}

.login-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 5px;
      background: linear-gradient(to right, #FF9933, #FFB366, #FF9933);
      border-radius: 0 0 32px 32px;
}

.login-header {
      text-align: center;
      margin-bottom: 36px;
      position: relative;
}

.login-header h1 {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 12px;
      background: linear-gradient(135deg, #FF6B35 0%, #FF9933 50%, #FFB366 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: 0.08em;
      text-transform: uppercase;
}

.login-header p {
      color: var(--text-gray);
      font-size: 1rem;
      font-weight: 400;
      letter-spacing: 0.03em;
      line-height: 1.6;
}

/* Form Styles */
.form-group {
      margin-bottom: 24px;
      position: relative;
}

.form-group label {
      display: block;
      margin-bottom: 10px;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-primary);
      letter-spacing: 0.02em;
}

.form-group input {
      width: 100%;
      padding: 16px 18px;
      background: #FFFFFF;
      border: 2px solid rgba(255, 153, 51, 0.3);
      border-radius: 16px;
      color: var(--text-dark);
      font-family: var(--font-family);
      font-size: 1rem;
      transition: all 0.3s ease;
      outline: none;
}

.form-group input::placeholder {
      color: rgba(139, 111, 71, 0.5);
}

.form-group input:focus {
      background: #FFFBF5;
      border-color: var(--saffron);
      box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.1);
}

.input-focus-line {
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: 2px;
      background: var(--primary-color);
      transition: all 0.3s ease;
      transform: translateX(-50%);
}

.form-group input:focus+.input-focus-line {
      width: 100%;
}

/* Button Styles */
button {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, #FF6B35 0%, #FF9933 50%, #FFB366 100%);
      color: white;
      border: none;
      border-radius: 16px;
      font-size: 1.05rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 12px;
      position: relative;
      overflow: hidden;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

button:hover {
      background: linear-gradient(135deg, #FF8C42 0%, #FFB366 50%, #FFCC99 100%);
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(255, 153, 51, 0.4);
}

button:active {
      transform: translateY(0);
}

button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
}

/* Loader */
.loader {
      display: none;
      width: 20px;
      height: 20px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      border-top-color: #fff;
      animation: spin 0.8s linear infinite;
      position: absolute;
      left: 50%;
      top: 50%;
      margin-left: -10px;
      margin-top: -10px;
}

@keyframes spin {
      to {
            transform: rotate(360deg);
      }
}

button.loading .btn-text {
      visibility: hidden;
}

button.loading .loader {
      display: block;
}

.error-message {
      color: var(--error-red);
      font-size: 0.85rem;
      margin-bottom: 16px;
      min-height: 20px;
      text-align: center;
      opacity: 0;
      transition: opacity 0.3s ease;
}

.error-message.visible {
      opacity: 1;
}

.login-footer {
      margin-top: 32px;
      text-align: center;
}

.login-footer a {
      color: var(--text-gray);
      text-decoration: none;
      font-size: 0.875rem;
      transition: color 0.2s ease;
}

.login-footer a:hover {
      color: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
      body {
            align-items: flex-start;
            padding-top: 40px;
            overflow-y: auto;
            height: auto;
            min-height: 100vh;
      }

      .login-container {
            padding: 16px;
      }

      .login-card {
            padding: 32px 24px;
            border-radius: 20px;
      }

      .login-header h1 {
            font-size: 2rem;
      }

      .login-header p {
            font-size: 0.875rem;
      }

      .form-group input {
            padding: 12px 14px;
            font-size: 0.95rem;
      }

      button {
            padding: 12px;
      }
}

/* Landscape Mobile or Very Short Screens */
@media (max-height: 600px) {
      body {
            align-items: flex-start;
            padding-top: 20px;
            padding-bottom: 20px;
            overflow-y: auto;
            height: auto;
      }

      .login-header {
            margin-bottom: 24px;
      }
}

/* Audio Player Styles */
.audio-player {
      position: fixed;
      bottom: 30px;
      right: 30px;
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--card-bg);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 2px solid var(--glass-border);
      border-radius: 50px;
      padding: 12px 20px 12px 12px;
      box-shadow: var(--shadow-soft);
      z-index: 1000;
      transition: all 0.3s ease;
}

.audio-player:hover {
      box-shadow: var(--shadow-hover);
      transform: translateY(-2px);
}

.audio-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #FF6B35 0%, #FF9933 50%, #FFB366 100%);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
      position: relative;
      padding: 0;
}

.audio-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.audio-btn:active {
      transform: scale(0.95);
}

.audio-btn svg {
      width: 20px;
      height: 20px;
      color: white;
      position: absolute;
      transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-play {
      opacity: 1;
}

.icon-pause {
      opacity: 0;
}

.audio-btn.playing .icon-play {
      opacity: 0;
      transform: scale(0.8);
}

.audio-btn.playing .icon-pause {
      opacity: 1;
      transform: scale(1);
}

.icon-sound {
      opacity: 1;
}

.icon-mute {
      opacity: 0;
}

.audio-btn.muted .icon-sound {
      opacity: 0;
      transform: scale(0.8);
}

.audio-btn.muted .icon-mute {
      opacity: 1;
      transform: scale(1);
}

.volume-slider {
      width: 100px;
      height: 6px;
      -webkit-appearance: none;
      appearance: none;
      background: rgba(255, 153, 51, 0.2);
      border-radius: 10px;
      outline: none;
      transition: all 0.3s ease;
}

.volume-slider:hover {
      background: rgba(255, 153, 51, 0.3);
}

.volume-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: linear-gradient(135deg, #FF6B35, #FF9933);
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
      transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
      transform: scale(1.2);
      box-shadow: 0 3px 12px rgba(255, 107, 53, 0.5);
}

.volume-slider::-moz-range-thumb {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: linear-gradient(135deg, #FF6B35, #FF9933);
      cursor: pointer;
      border: none;
      box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
      transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
      transform: scale(1.2);
      box-shadow: 0 3px 12px rgba(255, 107, 53, 0.5);
}

/* Mobile Responsiveness for Audio Player */
@media (max-width: 480px) {
      .audio-player {
            bottom: 16px;
            top: auto;
            right: 16px;
            left: auto;
            padding: 8px 12px 8px 8px;
            gap: 8px;
            border-radius: 40px;
      }

      .audio-btn {
            width: 32px;
            height: 32px;
      }

      .audio-btn svg {
            width: 16px;
            height: 16px;
      }

      .volume-slider {
            width: 60px;
            height: 4px;
      }

      .volume-slider::-webkit-slider-thumb {
            width: 12px;
            height: 12px;
      }

      .volume-slider::-moz-range-thumb {
            width: 12px;
            height: 12px;
      }
}