:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --primary-blue: #38bdf8;
  --text-light: #f8fafc;
  --text-gray: #94a3b8;
  --btn-gray: #64748b;
  --btn-gray-hover: #94a3b8;
  --input-bg: #334155;
  --border-color: #475569;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  background:
    linear-gradient(rgba(2, 6, 23, 0.75), rgba(15, 23, 42, 0.85)),
    url("../vendor/FONDO.jpg") no-repeat center center fixed;

  background-size: cover;
  color: var(--text-light);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 20px;
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  z-index: 10;
  animation: fadeIn 0.8s ease-out;
}

.login-card {
  background-color: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.logo {
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.logo img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
}

header h1 {
  color: var(--primary-blue);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

header p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 22px;
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--primary-blue);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.input-field, select {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

#cbm_rol option{
  color: #0f172a;
  background: #ffffff;
}

.input-field:focus, select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.input-field::placeholder { color: rgba(255, 255, 255, 0.3); }

.status-area {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  text-align: center;
}

.loader img { width: 50px; height: 50px; }

.btn-verify {
  margin-top: 6px;
  width: 100%;
  padding: 14px;
  background-color: var(--btn-gray);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-verify:hover {
  background-color: var(--btn-gray-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-verify:disabled {
  background-color: #334155;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin: 10px auto 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .login-card { padding: 30px 20px; }
  header h1 { font-size: 1.75rem; }
}
