/* PropertyVid Dashboard Styles - Matching demo3 aesthetic */

:root {
  /* Color palette from demo3 */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(215, 25%, 7%);
  --card: hsl(210, 20%, 98%);
  --card-foreground: hsl(215, 25%, 7%);
  --primary: hsl(35, 35%, 54%); /* Muted gold #B8935C */
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(215, 20%, 20%);
  --secondary-foreground: hsl(0, 0%, 98%);
  --muted: hsl(214, 32%, 91%);
  --muted-foreground: hsl(215, 16%, 47%);
  --accent: hsl(35, 35%, 54%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 72%, 51%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(214, 32%, 91%);
  --input: hsl(214, 32%, 91%);
  --ring: hsl(35, 35%, 54%);
  --success: hsl(142, 76%, 36%);
  --radius: 0.75rem;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Login Container */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(to bottom, var(--background), var(--card));
  position: relative;
  overflow: hidden;
}

/* Grid background pattern (like demo3) */
.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 3rem 3rem;
  opacity: 0.5;
  pointer-events: none;
}

/* Radial gradient overlay */
.login-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(184, 147, 92, 0.15), transparent);
  pointer-events: none;
}

/* Login Card */
.login-card {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Login Header */
.login-header {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 2.5rem 2rem;
  text-align: center;
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.login-header p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  color: var(--muted);
}

/* Login Content */
.login-content {
  padding: 2.5rem 2rem;
}

.login-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--foreground);
}

.login-subtitle {
  color: var(--muted-foreground);
  margin: 0 0 2rem 0;
  font-size: 0.95rem;
}

/* Form Styles */
.login-form {
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--foreground);
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  font-size: 1rem;
  font-family: inherit;
  background: var(--background);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px hsla(35, 35%, 54%, 0.1);
}

.form-group input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

/* PIN Input specific styling */
.form-group input[type="text"]#pin {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  text-align: center;
  font-family: monospace;
  font-weight: 700;
}

/* Code sent message */
.code-sent-msg {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.code-sent-msg strong {
  color: var(--primary);
}

/* Primary Button */
.btn-primary {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: calc(var(--radius) - 2px);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(184, 147, 92, 0.2);
}

.btn-primary:hover {
  background: hsl(35, 35%, 48%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 147, 92, 0.3);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 2rem;
  background: hsla(142, 76%, 36%, 0.05);
  border: 1px solid hsla(142, 76%, 36%, 0.2);
  border-radius: var(--radius);
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-message h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--foreground);
}

.success-message p {
  margin: 0 0 0.75rem 0;
  color: var(--muted-foreground);
}

.success-message .small-text {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  opacity: 0.8;
}

/* Error Message */
.error-message {
  text-align: center;
  padding: 1.5rem;
  background: hsla(0, 72%, 51%, 0.05);
  border: 1px solid hsla(0, 72%, 51%, 0.2);
  border-radius: var(--radius);
}

.error-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.error-message p {
  margin: 0;
  color: var(--destructive);
  font-weight: 600;
}

/* Login Footer */
.login-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.login-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.login-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.login-footer a:hover {
  color: hsl(35, 35%, 48%);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .login-container {
    padding: 1rem;
  }

  .login-header {
    padding: 2rem 1.5rem;
  }

  .login-header h1 {
    font-size: 1.75rem;
  }

  .login-content {
    padding: 2rem 1.5rem;
  }

  .login-content h2 {
    font-size: 1.5rem;
  }
}
