
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f8fafc;
  margin: 0;
}

.main-container { background: #f8fafc; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-container { width: 100%; max-width: 520px; position: relative; z-index: 10; }
.login-card { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 26px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); padding: 48px; border-top: 4px solid #60a5fa; position: relative; overflow: hidden; }
.title { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; color: #037ebf; text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(3,126,191,0.2); margin-bottom: 10px; letter-spacing: 1px; text-align: center; }
.divider { width: 80px; height: 2px; background-color: #037ebf; margin: 0 auto 12px; border-radius: 2px; box-shadow: 0 2px 4px rgba(3,126,191,0.3); }
.subtitle { text-align:center; font-size: 1rem; font-weight: 500; color: #037ebf; text-shadow: 1px 1px 3px rgba(0,0,0,0.2), 0 0 8px rgba(3,126,191,0.15); }

/* Form Elements */
.form-container { position: relative; z-index: 10; }
.form-group { margin-bottom: 20px; }
.form-label { display:block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 8px; }
.form-input { width: 100%; padding: 16px; border: 1px solid #d1d5db; border-radius: 12px; font-size: 16px; background: rgba(255,255,255,0.8); backdrop-filter: blur(4px); box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: all 0.3s ease; outline: none; box-sizing: border-box; }
.form-input:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.form-input:focus { border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2,132,199,0.1); }
.input-container { width: 100%; }

/* Buttons */
.login-button { width: 100%; padding: 16px 24px; background: linear-gradient(135deg,#0284c7 0%, #0369a1 100%); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 500; cursor: pointer; box-shadow: 0 10px 25px rgba(2,132,199,0.4); transition: all 0.3s ease; position: relative; overflow: hidden; margin-bottom: 12px; box-sizing: border-box; }
.login-button::before { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition:left .5s; }
.login-button:hover::before { left: 100%; }

.register-section { text-align:center; }
.register-section a { font-weight: 500; color: #2563eb; text-decoration: none; transition: color 0.2s ease; }
.register-section a:hover { color: #1d4ed8; }

/* Messages */
.err { background-color: #fef2f2; color: #dc2626; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; text-align: center; font-size: 14px; font-weight: 500; border: 1px solid #fecaca; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.box button {
  width: 100%;
  padding: 12px;
  background: #2c5282; /* Real estate blue */
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.box button:hover {
  background: #1e3a5f; /* Darker hover */
}

.hint {
  margin-top: 20px;
  font-size: 14px;
}

.hint a {
  color: #2c5282;
  text-decoration: none;
  font-weight: 500;
}

.hint a:hover {
  text-decoration: underline;
}

.err {
  margin-bottom: 15px;
  padding: 10px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  border-radius: 5px;
  font-size: 13px;
}