/* Login page specific body styles */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  min-height: 100vh;
}

.icon-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.icon-box {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 55px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
  display: inline-block;
}

.icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  opacity: 0.45;
  z-index: -1;
}

.icon {
  width: 100px;
  height: 100px;
  fill: var(--accent);
}

.title-section {
  text-align: center;
  margin-bottom: 16px;
}

.title {
  font-size: 36px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text);
  font-size: 14px;
  opacity: 0.9;
}

.form-container {
  flex: 1;
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 32px;
}

form {
  width: 100%;
}

.form-group {
  width: 100%;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  padding-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}

.input-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.input-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary);
  opacity: 0.25;
  z-index: -1;
}

.form-input {
  background: transparent;
  border: none;
  outline: 2px solid transparent;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  font-size: 15px;
  color: var(--text);
  transition: outline-color 0.2s ease;
}

.form-input::placeholder {
  color: var(--accent);
  opacity: 0.35;
}

.form-input:focus {
  outline-color: var(--primary);
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--text);
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 28px;
}

.btn-submit:hover {
  opacity: 0.8;
}

.btn-submit:active {
  opacity: 0.6;
}

.footer-text {
  text-align: center;
  color: var(--text);
  font-size: 14px;
  padding: 20px 0 32px;
  opacity: 0.9;
}

.footer-text a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--secondary);
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--accent);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--text);
}

.error-message {
  color: var(--accent);
  text-align: left;
  font-size: 14px;
  margin-top: 4px;
  min-height: 20px;
}

/* PWA Install Banner */
.pwa-banner {
  width: 100%;
  max-width: 400px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #8b5cf6;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.pwa-banner::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #7c3aed;
  opacity: 0.25;
  z-index: -1;
}

.pwa-banner:hover {
  background: #7c3aed;
  transform: translateY(-2px);
}

.pwa-banner-content {
  flex: 1;
}

.pwa-banner-title {
  font-weight: 600;
  font-size: 16px;
  color: white;
  margin-bottom: 4px;
}

.pwa-banner-subtitle {
  font-size: 14px;
  color: white;
  opacity: 0.8;
}

.pwa-banner-icon {
  color: white;
  width: 24px;
  height: 24px;
}

.pwa-banner.hidden {
  display: none;
}

/* iOS Install Modal */
.ios-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
}

.ios-modal.show {
  display: flex;
}

.ios-drawer {
  background: var(--background);
  border-radius: 12px 12px 0 0;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.ios-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--secondary);
}

.ios-drawer-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.ios-drawer-description {
  font-size: 14px;
  color: var(--text);
  opacity: 0.7;
}

.ios-drawer-content {
  padding: 20px;
}

.ios-step {
  margin-bottom: 24px;
}

.ios-step-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.ios-step-number {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.ios-step-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.ios-step-image {
  background: var(--secondary);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.ios-step-image svg {
  width: 100px;
  height: 100px;
  fill: var(--text);
}

.ios-step-image.success {
  background: var(--secondary);
}

.ios-step-image.success svg {
  fill: var(--accent);
  width: 80px;
  height: 80px;
}

.ios-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ios-drawer-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  font-size: 16px;
}

.ios-drawer-btn-primary {
  background: var(--primary);
  color: white;
}

.ios-drawer-btn-primary:hover {
  opacity: 0.8;
}

.ios-drawer-btn-secondary {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
}

.ios-drawer-btn-secondary:hover {
  opacity: 0.7;
}

.platform-tabs {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.platform-tab {
  flex: 1;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--secondary);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.platform-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.platform-tab:hover:not(.active) {
  background: var(--secondary);
  opacity: 0.8;
}

.platform-content {
  display: none;
}

.platform-content.active {
  display: block;
}

@media (max-width: 480px) {
  .login-container {
    padding: 16px;
  }

  .title {
    font-size: 32px;
  }

  .icon {
    width: 80px;
    height: 80px;
  }

  .icon-box {
    padding: 30px;
  }
}