/* =============================================
   Servol HMS — Login Page (Clean & Clinical)
   ============================================= */

@import url("../vendor/inter/inter.css");

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #f0f4f8;
  color: #1e293b;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.main-container {
  display: flex;
  flex: 1;
  min-height: 100vh;
}

/* Left branding panel */
.left-panel {
  flex: 1;
  background: #0f3460 url("../images/drugs-background.jpg") center center / cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.left-panel > * { position: relative; z-index: 1; }

.panel-top-actions {
  position: absolute;
  top: 24px;
  left: 24px;
}

.btn-back-website {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(12, 28, 61, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.btn-back-website:hover {
  color: #ffffff;
  background: rgba(12, 28, 61, 0.78);
  transform: translateY(-1px);
}

.brand-logo {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 1.5rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.left-panel h1 {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.left-panel p {
  font-size: 0.9rem;
  opacity: 0.95;
  max-width: 320px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.left-panel-tagline {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Right form panel */
.right-panel {
  flex: 1.1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.login-card {
  width: 100%; max-width: 400px;
}

.login-card .login-header {
  margin-bottom: 2rem;
}

.login-card .login-header h2 {
  font-size: 1.5rem; font-weight: 700; color: #0f3460; margin-bottom: 0.25rem;
}

.login-card .login-header p {
  font-size: 0.85rem; color: #64748b; margin: 0;
}

.form-label {
  font-weight: 500; font-size: 0.83rem; color: #374151; margin-bottom: 4px;
}

.form-control {
  padding: 0.6rem 0.875rem;
  border-radius: 8px; font-size: 0.875rem;
  border: 1px solid #d1d5db;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: #1d6fce;
  box-shadow: 0 0 0 3px rgba(29,111,206,0.12);
  outline: none;
}

.btn-login {
  background: #1d6fce; color: #fff;
  border: none; border-radius: 8px;
  padding: 0.65rem 1rem; font-size: 0.875rem;
  font-weight: 600; width: 100%;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
}

.btn-login:hover { background: #155aab; }
.btn-login:active { transform: scale(0.99); }

.links { font-size: 0.82rem; }
.links a { color: #1d6fce; text-decoration: none; }
.links a:hover { text-decoration: underline; }

.divider {
  display: flex; align-items: center; gap: 0.75rem;
  color: #94a3b8; font-size: 0.75rem; margin: 1.25rem 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

@media (max-width: 768px) {
  .left-panel { display: none; }
  .right-panel { background: #f0f4f8; }
  .login-card {
    background: #fff; padding: 2rem;
    border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  }
}
