@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');

* {
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(193, 127, 96, 0.55);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 75% 30%, #2b201d 0%, #1c1614 45%, #171211 100%);
}

.card {
  display: flex;
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 8.5;
  background: #241d1b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  overflow: hidden;
}

.brand-panel {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0 30px;
}

.paw {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.paw ellipse,
.paw path {
  fill: #c17f60;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-title {
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.1;
}

.brand-subtitle {
  color: #d6d3d1;
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 2px;
}

.login-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 64px;
}

.login-title {
  color: #ffffff;
  font-size: 2.9rem;
  font-weight: 400;
  margin: 0 0 32px 0;
}

#loginForm {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

#loginForm label {
  color: #9a9a9a;
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 10px;
}

#loginForm input {
  width: 100%;
  height: 56px;
  background: #211a18;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 28px;
  padding: 0 22px;
  margin-bottom: 24px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

#loginForm input.error {
  border-color: #d97a3f;
}

#loginForm input.success {
  border-color: #7ed957;
}

.status-message {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0;
  min-height: 1.2em;
  color: #d97a3f;
}

.status-message.success {
  color: #7ed957;
}

.dashboard-card {
  aspect-ratio: auto;
  min-height: 520px;
  height: auto;
  padding: 0;
  overflow: visible;
}

.dashboard-left {
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;
  padding: 36px 40px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  overflow: visible;
  position: relative;
  z-index: 10;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.small-paw {
  width: 52px;
  height: 52px;
}

.brand-row .brand-title {
  font-size: 1.7rem;
  letter-spacing: 1px;
}

.brand-row .brand-subtitle {
  font-size: 1rem;
  margin-top: 0;
}

.brand-row .brand-text {
  align-items: flex-start;
}

.form-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: visible;
  position: relative;
  z-index: 10;
}

.form-section label {
  color: #9a9a9a;
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 10px;
}

.form-section input {
  width: 100%;
  height: 52px;
  background: #211a18;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  padding: 0 20px;
  margin-bottom: 22px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-section input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 22px;
  z-index: 50;
}

.custom-select-trigger {
  width: 100%;
  height: 52px;
  background: #211a18;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s ease;
  user-select: none;
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(255, 255, 255, 0.5);
}

.custom-select-value {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-value.placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.custom-select-arrow {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #211a18;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.custom-select.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 11px 20px;
  color: #e0dcda;
  font-size: 0.92rem;
  font-weight: 300;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-option:hover {
  background: rgba(193, 127, 96, 0.18);
  color: #ffffff;
}

.custom-select-option.selected {
  background: rgba(193, 127, 96, 0.28);
  color: #c17f60;
}

.custom-select-option.empty {
  color: #6b6562;
  cursor: default;
  text-align: center;
}

.custom-select-option.empty:hover {
  background: transparent;
  color: #6b6562;
}

.custom-select-options::-webkit-scrollbar {
  width: 4px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(193, 127, 96, 0.55);
}

.dashboard-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 28px 24px;
  position: relative;
  z-index: 1;
}

.messages-header {
  color: #c4c0be;
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 14px;
  padding-left: 4px;
}

.messages-panel {
  flex: 1;
  background: #1e1816;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow-y: auto;
  padding: 16px 18px;
  min-height: 360px;
  max-height: 420px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.msg-item {
  margin-bottom: 14px;
  line-height: 1.4;
}

.msg-author {
  color: #c17f60;
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 8px;
}

.msg-content {
  color: #e0dcda;
  font-size: 0.92rem;
  font-weight: 300;
  word-break: break-word;
}

.msg-time {
  color: #6b6562;
  font-size: 0.75rem;
  margin-left: 6px;
}

.messages-panel::-webkit-scrollbar {
  width: 5px;
}

.messages-panel::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}

.messages-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.messages-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(193, 127, 96, 0.55);
}

.empty-msg {
  color: #6b6562;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 40%;
  font-weight: 300;
}
