.sso-page {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: 120px;

  &.loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 300px;

    .loading-text {
      margin-top: 16px;
      font-size: 28px;
      color: #999;
    }
  }
}

.sso-content {
  height: calc(100vh - 120px);
}

// 状态卡片
.status-card {
  background: #fff;
  padding: 24px;
  margin: 24px;
  border-radius: 16px;

  .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;

    .status-info {
      display: flex;
      align-items: center;
      gap: 16px;

      .status-icon {
        font-size: 48px;
        color: #1890ff;
      }

      .status-text {
        .status-label {
          display: block;
          font-size: 32px;
          font-weight: 600;
          color: #333;
          margin-bottom: 8px;
        }
      }
    }
  }

  .sync-info {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #eee;

    .label {
      font-size: 26px;
      color: #999;
    }

    .value {
      font-size: 26px;
      color: #666;
    }
  }

  .error-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: #FFF2F0;
    border-radius: 8px;
    font-size: 26px;
    color: #F44336;

    .iconfont {
      font-size: 28px;
    }
  }
}

// Tab 切换
.tabs {
  display: flex;
  margin: 0 24px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;

  .tab {
    flex: 1;
    text-align: center;
    padding: 20px;
    font-size: 28px;
    color: #666;

    &.active {
      color: #1890ff;
      font-weight: 500;
      background: rgba(24, 144, 255, 0.1);
    }
  }
}

// 配置内容
.config-content {
  padding: 24px;
}

.config-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;

  .section-title {
    display: block;
    font-size: 30px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
  }

  .section-hint {
    display: block;
    font-size: 24px;
    color: #999;
    margin-bottom: 16px;
  }
}

// 提供商选择
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;

  .provider-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: #f5f5f5;
    border-radius: 12px;
    border: 2px solid transparent;

    &.active {
      background: rgba(24, 144, 255, 0.1);
      border-color: #1890ff;
    }

    .provider-icon {
      font-size: 40px;
      color: #666;
      margin-bottom: 8px;
    }

    .provider-name {
      font-size: 24px;
      color: #333;
    }
  }
}

// 表单项
.form-item {
  margin-bottom: 20px;

  &:last-child {
    margin-bottom: 0;
  }

  .form-label {
    display: block;
    font-size: 26px;
    color: #666;
    margin-bottom: 8px;
  }

  .form-input {
    width: 100%;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 28px;
  }
}

// 开关项
.switch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;

  &:last-child {
    border-bottom: none;
    margin-bottom: 20px;
  }

  .switch-info {
    .switch-label {
      display: block;
      font-size: 28px;
      color: #333;
      margin-bottom: 4px;
    }

    .switch-desc {
      font-size: 24px;
      color: #999;
    }
  }
}

// 服务提供商信息
.sp-info {
  .sp-item {
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 12px;

    .sp-label {
      display: block;
      font-size: 24px;
      color: #999;
      margin-bottom: 8px;
    }

    .sp-value {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .value-text {
        flex: 1;
        font-size: 26px;
        color: #333;
        font-family: monospace;
      }

      .copy-btn {
        font-size: 24px;
        color: #1890ff;
        margin-left: 16px;
      }
    }
  }
}

// 日志内容
.logs-content {
  padding: 24px;

  .log-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;

    .log-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;

      .log-time {
        font-size: 24px;
        color: #999;
      }
    }

    .log-info {
      margin-bottom: 8px;

      .log-user {
        font-size: 28px;
        font-weight: 500;
        color: #333;
        margin-right: 12px;
      }

      .log-msg {
        font-size: 26px;
        color: #666;
      }
    }

    .log-ip {
      font-size: 22px;
      color: #999;
    }
  }
}

.empty-logs {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 0;
  color: #999;

  .iconfont {
    font-size: 96px;
    margin-bottom: 24px;
  }

  text {
    font-size: 28px;
  }
}

// 操作按钮
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);

  .at-button {
    flex: 1;
  }
}

// 测试结果弹窗
.test-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;

  .result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;

    .iconfont {
      font-size: 40px;
      color: #fff;
    }

    &.success {
      background: #4CAF50;
    }

    &.error {
      background: #F44336;
    }
  }

  .result-message {
    font-size: 28px;
    color: #333;
    text-align: center;
  }
}
