/* ============================================================
   SmartFence Admin — Login Page Styles
   ============================================================ */

:root {
  --teal:        #0D7A6B;
  --teal-dark:   #0A6659;
  --teal-darker: #083D35;
  --teal-light:  #e6f4f1;
  --text-dark:   #1a2332;
  --text-body:   #374151;
  --border:      #6B7280;
  --white:       #ffffff;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--teal-darker) 0%, var(--teal) 60%, #0fa88f 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

.login-container {
  width: 100%;
  max-width: 440px;
}

/* Logo area */
.login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin: 0 auto;
}
.login-logo .logo-tagline {
  display: block;
  margin-top: .5rem;
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

h1 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .375rem;
  text-align: center;
  letter-spacing: -.02em;
}

.subtitle {
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2rem;
  font-size: .875rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.375rem;
}

label {
  display: block;
  margin-bottom: .5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: .875rem;
}

input[type="email"],
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s;
  background: white;
}

input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,122,107,.1);
}

.btn-primary {
  width: 100%;
  padding: .875rem;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  letter-spacing: -.01em;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,122,107,.4);
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-darker) 100%);
}

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

.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: .75rem;
  background: white;
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  margin-top: 1rem;
}

.btn-secondary:hover {
  background: var(--teal);
  color: white;
}

.message {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .875rem;
  text-align: center;
}

.message.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.message.success {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid rgba(13,122,107,.25);
}

.success-section { text-align: center; }

.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.success-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}

.success-section p {
  color: var(--text-body);
  margin-bottom: .75rem;
  line-height: 1.6;
  font-size: .9375rem;
}

.help-text {
  font-size: .875rem;
  color: var(--text-dark);
}

.footer {
  text-align: center;
  margin-top: 1.5rem;
  color: rgba(255,255,255,.65);
  font-size: .8125rem;
}
.footer a { color: rgba(255,255,255,.85); text-decoration: underline; }

@media (max-width: 480px) {
  .login-card { padding: 2rem 1.5rem; }
  h1 { font-size: 1.375rem; }
}