/* style.css */
:root {
  --primary: #4e54c8;
  --primary-dark: #3a3fb8;
  --secondary: #8f94fb;
  --accent: #ff2d75;
  --bg: #0f0c29;
  --card-bg: #1a172d;
  --text: #f0f0f0;
  --error: #ff4d6d;
  --success: #4ade80;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.auth-page {
  background: linear-gradient(135deg, var(--bg), #24243e, #1a172d);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(143, 148, 251, 0.2);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(78,84,200,0.1) 0%, transparent 70%);
  z-index: -1;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(to right, var(--secondary), #ff2d75);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.subtitle {
  text-align: center;
  margin-bottom: 24px;
  color: #aaa;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #333;
  border-radius: 8px;
  background: #25223a;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary);
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--primary-dark), #7a7ff0);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(78, 84, 200, 0.4);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.alert.error {
  background: rgba(255, 77, 109, 0.2);
  border: 1px solid var(--error);
  color: var(--error);
}

.alert.success {
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid var(--success);
  color: var(--success);
}

.demo-login {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #bbb;
}

.demo-login code {
  background: #2a273f;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}
.music-control {
    position: fixed;
    top: 1rem;
    right: 1rem;      
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
}
        .logo-image {
            height: 10rem;   
            width: auto;
            margin: 0;
            object-fit: contain;
        }

        @media (min-width: 769px) {
            header {
                padding: 1rem 5rem;
            }
        }
  /* === Password Eye Toggle === */
.password-wrapper {
    position: relative;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    width: 100%;
    padding-right: 40px; /* Space for the eye icon */
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
    color: #aaa;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #05ffa1; /* Brain Byte accent color */
}