/* ============================================
   USC Virtual — Auth Pages Modern Style
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

body.auth-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #071a12 0%, #0d2e20 40%, #0f3d28 70%, #0a2218 100%);
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
  padding: 20px;
}

/* ---- Card ---- */
.auth-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.2);
  overflow: hidden;
}

.auth-card-header {
  background: linear-gradient(145deg, #0a5a45 0%, #158D72 60%, #1aaa8a 100%);
  padding: 28px 32px 22px;
  text-align: center;
}

.auth-card-header img {
  width: 58%;
  max-width: 210px;
  filter: brightness(0) invert(1);
}

.auth-card-body {
  padding: 28px 32px 32px;
}

/* ---- Title ---- */
.auth-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 22px;
  text-align: center;
  letter-spacing: 0.2px;
}

/* ---- Inputs ---- */
.auth-field {
  position: relative;
  margin-bottom: 16px;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #2d3748;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  appearance: none;
}

.auth-field input:focus {
  border-color: #158D72;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21,141,114,0.12);
}

.auth-field input::placeholder {
  color: #a0aec0;
}

.auth-field .auth-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0bec5;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s;
}

.auth-field:focus-within .auth-icon {
  color: #158D72;
}

/* ---- Button ---- */
.auth-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #0f6b57, #158D72);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 18px rgba(21,141,114,0.4);
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  margin-top: 6px;
}

.auth-btn:hover {
  opacity: 0.91;
  box-shadow: 0 6px 22px rgba(21,141,114,0.5);
}

.auth-btn:active {
  transform: scale(0.98);
}

/* ---- Links ---- */
.auth-links {
  margin-top: 18px;
  text-align: center;
}

.auth-links a {
  display: inline-block;
  color: #158D72;
  font-size: 13px;
  text-decoration: none;
  margin-top: 7px;
  transition: color 0.15s;
}

.auth-links a:hover {
  color: #0a5a45;
  text-decoration: underline;
}

/* ---- Status messages (error / success / info) ---- */
.auth-message {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-message.error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
}

.auth-message.success {
  background: #f0fdf8;
  border: 1px solid #9ae6c8;
  color: #0a5a45;
}

.auth-message.info {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.auth-message i {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- CTA link (Ingresar AQUÍ) ---- */
.auth-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 28px;
  background: linear-gradient(135deg, #0f6b57, #158D72);
  color: #fff !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(21,141,114,0.35);
  transition: opacity 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.auth-cta:hover {
  opacity: 0.89;
  box-shadow: 0 6px 20px rgba(21,141,114,0.45);
  color: #fff !important;
  text-decoration: none !important;
}

.auth-cta-block {
  text-align: center;
  margin-top: 8px;
}

/* ---- Recover forms (table override) ---- */
.auth-card-body .table {
  margin-bottom: 0;
}

.auth-card-body .table td,
.auth-card-body .table th {
  border: none;
  padding: 6px 4px;
  vertical-align: middle;
}

.auth-card-body .table .control-label {
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  white-space: nowrap;
}

.auth-card-body .table .form-control {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  padding: 9px 12px;
  background: #f8fafc;
  color: #2d3748;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card-body .table .form-control:focus {
  border-color: #158D72;
  box-shadow: 0 0 0 3px rgba(21,141,114,0.12);
  background: #fff;
  outline: none;
}
