/* ============================================================
   public/assets/css/auth.css
   Estilos compartidos para login y register.
   ============================================================ */

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

body {
  font-family: 'Inter', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

/* ── Card ────────────────────────────────── */
.auth-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Brand ───────────────────────────────── */
.brand-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 16px;
}

.brand-title .opticas {
  color: #D62828;
  font-style: italic;
}

.brand-title .gcl {
  color: #1a1a2e;
}

.brand-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* ── Subtitle ────────────────────────────── */
.auth-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 400;
  margin-bottom: 26px;
  text-align: center;
}

/* ── Alert messages ──────────────────────── */
.alert-msg {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 14px;
  display: none;
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.alert-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

/* ── Form ────────────────────────────────── */
.auth-form {
  width: 100%;
}

.form-group {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.form-control {
  width: 100%;
  padding: 14px 46px 14px 18px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #374151;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control::placeholder {
  color: #9ca3af;
}

.form-control:focus {
  border-color: #D62828;
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.12);
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.input-icon:hover {
  color: #D62828;
}

/* ── Checkbox rows ───────────────────────── */
.check-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  margin-top: 4px;
}

.check-row.right {
  justify-content: flex-end;
}

.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #D62828;
  cursor: pointer;
  flex-shrink: 0;
}

.check-row label {
  font-size: 0.875rem;
  color: #4b5563;
  cursor: pointer;
}

.check-row label a {
  color: #D62828;
  font-weight: 600;
  text-decoration: none;
}

.check-row label a:hover {
  text-decoration: underline;
}

/* ── Primary button ──────────────────────── */
.btn-primary-auth {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #D62828 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  box-shadow: 0 4px 15px rgba(214, 40, 40, 0.35);
  margin-bottom: 22px;
}

.btn-primary-auth:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.45);
}

.btn-primary-auth:active {
  transform: translateY(0);
}

.btn-primary-auth.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ── Footer links ────────────────────────── */
.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.auth-links a {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: #D62828;
}

.auth-links a span {
  color: #D62828;
  font-weight: 600;
}

/* ── Social divider ──────────────────────── */
.divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.divider span {
  font-size: 0.78rem;
  color: #9ca3af;
  white-space: nowrap;
}

/* ── Social buttons ──────────────────────── */
.btn-social {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 10px;
  text-decoration: none;
}

.btn-social:hover {
  border-color: #D62828;
  background: #fff5f5;
}

.btn-social .fa-facebook { color: #1877f2; }
.btn-social .fa-google   { color: #ea4335; }
