@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

:root {
  --bg-dark: #0a192f;
  --card-bg: rgba(0, 0, 0, 0.82);
  --text-main: #e6f1ff;
  --text-muted: #aab7c4;
  --blue-dark: #082b4e;
  --blue-hover: #4682b4;
  --border-light: #f5f1f1;
  --error: #ff6b6b;
  --success: #cde8ff;
  --glow: rgba(230, 241, 255, 0.75);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Share Tech Mono", Consolas, monospace;
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(rgba(10, 25, 47, 0.45), rgba(10, 25, 47, 0.65)),
    url("/image/world.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-main);
}

/* Layout principal */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Ocultamos el panel lateral anterior para usar el estilo del ejemplo */
.login-brand {
  display: none;
}

.login-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card de login */

.login-card {
  width: 100%;
  max-width: 370px;
  padding: 30px;
  border-radius: 10px;
  background: var(--card-bg);
  text-align: center;
  border: 1px solid rgba(245, 241, 241, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 0 20px var(--glow);
}

/* Logo */

.mobile-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.mobile-logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.mobile-logo:hover {
  border-color: #e6f1ff;
  box-shadow: 0 0 20px var(--glow);
  transform: scale(1.06);
}

/* Header */

.login-header {
  margin-bottom: 1.4rem;
}

.login-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-header h2 {
  margin: 10px 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.login-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Formulario */

.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: none;
  border-radius: 5px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 14px;
}

.form-group input:focus {
  box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.45);
}

.form-group input::placeholder {
  color: #64748b;
}

/* Mensajes */

.login-message {
  min-height: 1.4rem;
  margin-bottom: 12px;
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: left;
}

.login-message.error {
  color: var(--error);
}

.login-message.success {
  color: var(--success);
}

/* Botón */

.login-button {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: var(--blue-dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.login-button:hover {
  background: var(--blue-hover);
  box-shadow: 0 0 15px rgba(230, 241, 255, 0.55);
  transform: translateY(-1px);
}

.login-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Footer */

.login-footer {
  margin-top: 15px;
}

.login-footer p {
  margin: 0;
  font-size: 12px;
  color: #bbb;
}

/* Responsive */

@media (max-width: 480px) {
  .login-page {
    padding: 1rem;
  }

  .login-card {
    max-width: 100%;
    padding: 24px 20px;
  }

  .mobile-logo {
    width: 92px;
    height: 92px;
  }

  .login-header h2 {
    font-size: 20px;
  }

  .login-header p {
    font-size: 13px;
  }

  .form-group input {
    min-height: 42px;
    font-size: 15px;
  }

  .login-button {
    min-height: 45px;
    font-size: 15px;
  }
}
