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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
}

.page {
  min-height: 100vh;
  position: relative;
  background: #1c2228;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1)),
    url("../images/background.png") center / cover no-repeat fixed;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 0;
}

.page-bg.is-loaded {
  opacity: 1;
}

.icon {
  width: 22px;
  height: 22px;
  display: block;
}

.corner-btn {
  position: fixed;
  bottom: 24px;
  top: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  /* border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08); */
  background: transparent;
  border: none;  
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, color 0.2s;
}

.corner-btn .icon {
  width: 18px;
  height: 18px;
}

.corner-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.corner-btn:active {
  transform: scale(0.97);
}

.feedback-btn {
  left: 24px;
}

.login-btn {
  right: 24px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 100;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 36px 28px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* border: none; */
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  color: rgba(0, 0, 0, 0.45);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: #111;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  position: relative;
  display: block;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.field-icon .icon {
  width: 18px;
  height: 18px;
}

.field input {
  width: 100%;
  padding: 11px 14px 11px 44px;
  /* border: 1px solid #d8dde5; */
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  /* border: none; */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: #8ea4c4;
  box-shadow: 0 0 0 3px rgba(142, 164, 196, 0.2);
}

.field-textarea .field-icon {
  top: 16px;
  transform: none;
}

.field textarea {
  width: 100%;
  min-height: 120px;
  padding: 11px 14px 11px 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* border: none; */
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.4;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea:focus {
  border-color: #8ea4c4;
  box-shadow: 0 0 0 3px rgba(142, 164, 196, 0.2);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 48px;
  height: 48px;
  margin-top: 8px;
  padding: 0;
  border: 1px solid #d8dde5;
  border-radius: 999px;
  /* background: rgba(255, 255, 255, 0.2); */
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  /* border: none; */
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.submit-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  min-height: 18px;
  font-size: 13px;
  color: #c0392b;
  text-align: center;
}
