/* Dubuz auth screens — Yui-inspired mobile anatomy, brand red
   Rubik loaded via Google Fonts CDN in mobile.blade.php */

:root {
  --primary: #c64949;
  --primary-hover: #b03c3c;
  --primary-light: rgba(198, 73, 73, 0.12);
  --bg-page: #f0f2f5;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --light-gray: #ecf1f5;
}

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

body.auth-body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  min-height: 100vh;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
}

.auth-topbar {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  flex-shrink: 0;
}
.auth-back {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 12px;
}
.auth-back:active { background: var(--light-gray); }
.auth-back .f7-icons { font-size: 22px; }

.auth-content {
  flex: 1;
  padding: 8px 20px 32px;
  display: flex;
  flex-direction: column;
}

.auth-content h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  margin: 8px 0 20px;
  text-align: center;
  letter-spacing: -0.02em;
}

.auth-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  margin: -8px 0 20px;
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--light-gray);
  border: 0;
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.auth-social-btn:active { opacity: 0.92; }
.auth-social-btn img,
.auth-social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.auth-separator {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin: 16px 0 14px;
  position: relative;
}

.auth-form .form-group { margin-bottom: 12px; }
.auth-form label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-main);
}
.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-forgot-row {
  text-align: right;
  margin: 4px 0 8px;
}
.auth-forgot-row a {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.auth-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.auth-btn-primary:hover { background: var(--primary-hover); }
.auth-btn-primary:active { transform: translateY(1px); }

.auth-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.45;
}
.auth-alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-alert-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}
.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
}
.auth-links-row a {
  color: var(--primary);
  text-decoration: none;
}

.auth-tos {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}
.auth-tos a { color: var(--text-muted); text-decoration: underline; }

@media (min-width: 768px) {
  body.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .auth-shell {
    min-height: auto;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(85, 95, 105, 0.12);
    overflow: hidden;
  }
  .auth-content { padding: 12px 28px 36px; }
}
