/* ===============================
   STYLE CSS - Login/Register Pages
   Velocidade C.A.F
   =============================== */

:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --danger-color: #ef4444;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.65), rgba(30, 41, 59, 0.65)),
    url('/static/img/loginreak.jpg') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wrap {
  width: 100%;
  max-width: 420px;
}

.card-login-modern {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 24px;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 8px;
}

.lead {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  margin-bottom: 32px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--card-bg);
  color: var(--text-color);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.small {
  font-size: 14px;
}

.muted {
  color: var(--text-muted);
}

.small.muted a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.small.muted a:hover {
  text-decoration: underline;
}

#feedback {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.google-signin-container {
  margin-top: 24px;
  text-align: center;
}

#offlineIndicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #f59e0b;
  color: white;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  z-index: 9999;
  display: none;
}

body.offline #offlineIndicator {
  display: block;
}

body.offline #offlineIndicator::before {
  content: '📴 MODO OFFLINE';
}

/* Responsive */
@media (max-width: 480px) {
  .card-login-modern {
    padding: 24px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  .row {
    flex-direction: column;
    align-items: stretch;
  }
}
