/* style.css */
:root {
  --bg-dark: #030508;
  --bg-card: rgba(10, 16, 31, 0.88);
  --border-color: rgba(0, 240, 255, 0.28);
  --neon-cyan: #00f0ff;
  --neon-purple: #9d4edd;
  --neon-red: #ff0055;
  --gold: #ffb703;
  --text-main: #f8f9fa;
  --text-muted: #8d99ae;
  --success: #38b000;
  --danger: #d90429;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', 'Montserrat', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  user-select: none;
}

#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

#announcement-banner {
  background: linear-gradient(90deg, var(--neon-red), var(--neon-purple));
  color: white;
  text-align: center;
  padding: clamp(8px, 1.5vw, 12px);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  display: none;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
  z-index: 1000;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(15px, 3vw, 25px);
  width: 100%;
  flex: 1;
  z-index: 1;
}

.auth-container, .login-container {
  max-width: 440px;
  margin: 8vh auto;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: clamp(25px, 5vw, 40px) clamp(20px, 4vw, 30px);
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.1);
  text-align: center;
}

.auth-container h2, .login-container h2 {
  margin-bottom: 10px;
  color: var(--neon-cyan);
  letter-spacing: 1.5px;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 900;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  margin-bottom: 25px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

.form-control {
  width: 100%;
  padding: clamp(10px, 2vw, 12px);
  background: rgba(4, 6, 9, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 6px;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  transition: all 0.3s;
  font-weight: 600;
}

.form-control:focus {
  border-color: var(--neon-cyan);
  outline: none;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.btn {
  width: 100%;
  padding: clamp(10px, 2vw, 12px);
  border: none;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}

.btn-cyan {
  background: var(--neon-cyan);
  color: var(--bg-dark);
}

.btn-cyan:hover {
  background: #00c4d4;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.btn-purple {
  background: var(--neon-purple);
  color: white;
}

.btn-purple:hover {
  background: #7b2cbf;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-dark);
}

.btn-gold:hover {
  background: #e0a100;
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.5);
}

.btn-red {
  background: var(--neon-red);
  color: white;
}

.btn-red:hover {
  background: #d00040;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(15px, 2vw, 25px);
  margin-top: 20px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: clamp(18px, 2.5vw, 24px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  border-color: var(--neon-cyan);
}

.card h3 {
  color: var(--neon-cyan);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
  font-weight: 800;
}

/* BRAND LOGO FIX - Strictly NO rounded masks or circular container on main Tyronex logos */
.brand-logo-clean {
  width: auto;
  height: clamp(45px, 6vw, 65px);
  max-width: 100%;
  object-fit: contain;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

/* TEAM LOGO ONLY - Circular styling preserved exclusively for Teams */
.circular-team-logo {
  width: clamp(50px, 6vw, 65px);
  height: clamp(50px, 6vw, 65px);
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.info-value {
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-active { background: rgba(56, 176, 0, 0.15); color: var(--success); border: 1px solid var(--success); }
.badge-inactive { background: rgba(217, 4, 41, 0.15); color: var(--danger); border: 1px solid var(--danger); }
.badge-timer { background: rgba(0, 240, 255, 0.1); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.badge-timer-glowing {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  font-weight: 900;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table th, .table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.table th {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.credential-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-btn {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--neon-cyan);
  color: var(--bg-dark);
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 25px;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.logout-link {
  color: var(--neon-red);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.logout-link:hover {
  color: #ff4d88;
}

.refresh-box-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.link-box-container {
  margin-top: 12px;
  background: rgba(157, 78, 221, 0.08);
  border: 1px solid var(--neon-purple);
  padding: 12px;
  border-radius: 8px;
}

.link-box-title {
  font-size: 0.75rem;
  color: var(--neon-purple);
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

footer {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
  font-weight: 700;
  z-index: 1;
}

/* RESPONSIVE BREAKPOINTS (Mobile, Tablet, Desktop, Ultra-wide / Smart TV) */
@media (max-width: 480px) {
  .container { padding: 12px; }
  .auth-container, .login-container { margin: 4vh auto; padding: 20px 15px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .table th, .table td { padding: 6px; font-size: 0.78rem; }
  .credential-box { flex-direction: column; align-items: flex-start; gap: 8px; }
  .copy-btn { width: 100%; text-align: center; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1920px) {
  .container { max-width: 1800px; }
  body { font-size: 18px; }
  .card { padding: 30px; }
  .brand-logo-clean { height: 85px; }
  .circular-team-logo { width: 85px; height: 85px; }
  .btn { font-size: 1.1rem; padding: 16px; }
}