/* GoggleCRM — Auth Pages — /var/www/html/app/assets/css/auth.css */

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

:root {
  --blue:       #0a66c2;
  --blue-dark:  #004fa3;
  --blue-light: #eff6ff;
  --green:      #22c55e;
  --red:        #ef4444;
  --amber:      #f59e0b;
  --grey-50:    #f9fafb;
  --grey-100:   #f3f4f6;
  --grey-200:   #e5e7eb;
  --grey-400:   #9ca3af;
  --grey-600:   #4b5563;
  --grey-800:   #1f2937;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
}

body.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: var(--grey-800);
  padding: 20px;
}

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

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: white;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-brand-name {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--grey-800);
}

.auth-tagline {
  display: block;
  font-size: 12px;
  color: var(--grey-400);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.auth-card {
  background: white;
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--grey-800);
  margin-bottom: 4px;
}

.auth-subtitle {
  color: var(--grey-400);
  font-size: 13px;
  margin-bottom: 24px;
}

/* Alerts */
.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-alert--error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Form */
.auth-form { margin-top: 20px; }

.form-group {
  margin-bottom: 16px;
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-600);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.label-link {
  float: right;
  font-weight: 400;
  text-transform: none;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0;
}
.label-link:hover { text-decoration: underline; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--grey-800);
  background: white;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  font-family: inherit;
}

textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,102,194,.12);
}

input.is-invalid { border-color: var(--red); }

input[disabled] {
  background: var(--grey-50);
  color: var(--grey-400);
  cursor: not-allowed;
}

.field-error {
  display: block;
  font-size: 11px;
  color: var(--red);
  margin-top: 4px;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--grey-400);
  margin-top: 4px;
}

.form-group--check { margin: 4px 0 16px; }
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--grey-600);
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit;
}

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

.btn-secondary {
  background: white;
  color: var(--grey-800);
  border: 1.5px solid var(--grey-200);
}
.btn-secondary:hover { background: var(--grey-50); border-color: var(--grey-400); }

.btn-danger {
  background: white;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-danger:hover { background: #fef2f2; }

.btn-full { width: 100%; }
.btn-large { height: 48px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }
.btn-xs { height: 26px; padding: 0 10px; font-size: 11px; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--grey-400);
}
.auth-footer a { color: var(--blue); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }