:root {
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
  --accent-color: #38bdf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --btn-gradient: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
  --highlight-color: #fbbf24;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text-primary);
  direction: rtl;
}

.container {
  width: 90%;
  max-width: 400px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin: 20px 0;
}

.brand-header {
  text-align: center;
  margin-bottom: 25px;
}

.clinic-logo {
  width: 130px;
  height: 130px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  object-fit: contain;
  margin-bottom: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.brand-header h2 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--accent-color);
}

.sub {
  font-size: 12px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--btn-gradient);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

button:active {
  transform: scale(0.98);
}

#result {
  margin-top: 25px;
  padding: 20px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 16px;
  border: 1px dashed rgba(56, 189, 248, 0.3);
  animation: fadeIn 0.5s ease;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.result-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

.result-item strong {
  font-size: 18px;
  color: var(--accent-color);
}

.highlight {
  color: var(--highlight-color) !important;
}

hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 15px 0;
}

.note {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
