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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: #f8fafc;
}

.login-page {
  --bg-login: #f8fafc;
  --bg-card: #ffffff;
  --text-title: #0953ac;
  --text-subtitle: #6f7ed6;
  --text-desc: #8a95a6;
  --text-primary: #1f2937;
  --text-secondary: #8a95a6;
  --input-border: #e1e7ef;
  --input-focus: #0953ac;
  --btn-bg: #0b5fb7;
  --btn-hover: #0a55a5;
  --divider-bg: #e0e7f0;
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-login);
}

.visual-section {
  width: 65%;
  height: 100%;
  flex: 0 0 65%;
  position: relative;
  overflow: hidden;
  background: #0d6659 url("left-scene.png") center center / cover no-repeat;
}

.login-section {
  width: 35%;
  height: 100%;
  flex: 0 0 35%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 5.1%;
  background: var(--bg-login);
  overflow-y: auto;
}

.login-container {
  width: min(100%, 504px);
}

.download-choices {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.download-choice {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0953ac;
  background: #ffffff;
  cursor: pointer;
}

.download-choice:hover {
  border-color: #0953ac;
  background: #f4f8fd;
}

.download-choice:disabled {
  color: #98a4b5;
  border-color: #dce3eb;
  background: #f2f5f8;
  cursor: not-allowed;
}

.platform-header {
  margin-bottom: 66px;
}

.card-title-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 152px;
  padding: 30px 28px;
  border: 1px solid #e3e9f1;
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.card-title-icon {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #0d6acb 0%, #0953ac 100%);
  box-shadow: 0 10px 20px rgba(9, 83, 172, 0.27);
}

.login-arrow {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-left: 0;
  border-radius: 0 7px 7px 0;
}

.login-arrow::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 11px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #ffffff;
}

.login-arrow::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-top: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
  transform: rotate(45deg);
}

.card-title-content {
  flex: 1;
  min-width: 0;
}

.card-subtitle {
  margin: 0 0 10px;
  color: var(--text-subtitle);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 4px;
}

.card-title {
  margin: 0;
  color: var(--text-title);
  font-size: 29px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.card-desc {
  margin: 10px 0 0;
  color: var(--text-desc);
  font-size: 16px;
  line-height: 1.4;
}

.login-form {
  margin-top: 0;
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:focus-within,
.input-wrapper:hover {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(9, 83, 172, 0.06);
}

.input-icon {
  position: relative;
  width: 48px;
  height: 100%;
  flex: 0 0 48px;
}

.input-icon::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 13px;
  height: 13px;
  border: 2px solid #8490a3;
  border-radius: 50%;
}

.input-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  width: 22px;
  height: 12px;
  border: 2px solid #8490a3;
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
}

.input-icon.lock::before {
  left: 18px;
  top: 25px;
  width: 16px;
  height: 13px;
  border-radius: 3px;
}

.input-icon.lock::after {
  left: 20px;
  top: 16px;
  width: 12px;
  height: 12px;
  border: 2px solid #8490a3;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.form-input {
  width: calc(100% - 20px);
  height: 38px;
  margin-right: 14px;
  border: 1px solid #e7ecf3;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text-primary);
  background: #ffffff;
  font-size: 15px;
  outline: none;
}

.form-input::placeholder {
  color: #a5afbd;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 28px;
  color: var(--text-secondary);
  font-size: 15px;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.remember-me input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0953ac;
}

.forgot-password {
  color: var(--btn-bg);
  font-weight: 700;
}

.message {
  min-height: 20px;
  margin: -12px 0 10px;
  color: #d32029;
  font-size: 13px;
  line-height: 20px;
}

.message.success {
  color: #237804;
}

.login-btn,
.download-again {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  background: var(--btn-bg);
  box-shadow: 0 4px 10px rgba(9, 83, 172, 0.22);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover,
.download-again:hover {
  background: var(--btn-hover);
  box-shadow: 0 7px 14px rgba(9, 83, 172, 0.28);
}

.login-btn:disabled,
.operation-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.download-again {
  margin-top: 12px;
  color: var(--btn-bg);
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  box-shadow: none;
}

.download-again:hover {
  color: #ffffff;
}

.login-footer {
  margin-top: 28px;
  padding-top: 76px;
  border-top: 1px solid var(--divider-bg);
  text-align: center;
}

.copyright {
  margin: 0;
  color: #98a4b5;
  font-size: 13px;
}

.hidden {
  display: none;
}

.authenticated .platform-header {
  margin-bottom: 28px;
}

.authenticated-panel {
  display: grid;
  gap: 20px;
}

.authenticated-panel.hidden {
  display: none;
}

.session-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-kicker {
  margin: 0 0 5px;
  color: #6f7ed6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.session-row h3,
.operation-title h4 {
  margin: 0;
  letter-spacing: 0;
}

.session-row h3 {
  color: #0953ac;
  font-size: 21px;
}

.text-button {
  border: 0;
  padding: 4px 0;
  color: #66758a;
  background: transparent;
  cursor: pointer;
}

.operation-section {
  padding-top: 18px;
  border-top: 1px solid #e0e7f0;
}

.operation-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.step-index {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #0b5fb7;
  font-size: 13px;
  font-weight: 700;
}

.operation-title h4 {
  color: #1f2937;
  font-size: 16px;
}

.operation-title p {
  margin: 5px 0 0;
  color: #7a8798;
  font-size: 13px;
  line-height: 1.55;
}

.file-input {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #d7dfe9;
  border-radius: 6px;
  background: #ffffff;
}

.operation-button {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  background: #0b5fb7;
  cursor: pointer;
}

.operation-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: #d32029;
  font-size: 13px;
}

.operation-message.success {
  color: #237804;
}

@media (max-width: 1100px) {
  .visual-section {
    width: 56%;
    flex-basis: 56%;
  }

  .login-section {
    width: 44%;
    flex-basis: 44%;
    padding: 32px;
  }

  .platform-header {
    margin-bottom: 42px;
  }
}

@media (max-width: 760px) {
  .login-page {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .visual-section {
    width: 100%;
    height: 260px;
    min-height: 260px;
    background-position: center top;
  }

  .login-section {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 260px);
    align-items: flex-start;
    padding: 28px 20px;
    overflow: visible;
  }

  .card-title-wrapper {
    min-height: 120px;
    padding: 22px;
  }

  .card-title {
    font-size: 24px;
  }

  .card-desc {
    font-size: 14px;
  }

  .platform-header {
    margin-bottom: 30px;
  }

  .login-footer {
    padding-top: 40px;
  }
}
