<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
  <head>
    <title>{{if .Error }}{{ .Error | title }}{{ else }}Success{{end}}</title>
    <link rel="preconnect" href="https://fonts.gstatic.com" />
    <link href="https://fonts.googleapis.com/css2?family=DM+Sans&display=swap" rel="stylesheet" />

    <style>
      html,
      body {
        height: 100%;
      }

      body {
        font-family: "DM Sans";
        font-style: normal;
        font-size: 14px;
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        background: #f5f6f6;
        align-items: center;
      }

      .root-container {
        display: flex;
        height: 100%;
        align-items: center;
        justify-content: center;
      }

      .info-container {
        width: 320px;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1),
          0px 8px 25px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        padding: 48px;
        background: #fff;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 24px;
      }

      .title {
        font-weight: 600;
        font-size: 24px;
        line-height: 28px;
      }

      a {
        color: #C4CCD6;
      }

      a:hover {
        color: #90A5B1;
      }

      .content {
        width: 300px;
        font-size: 14px;
      }

      .button {
        display: flex;
        background: #1B3139;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 300px;
        border-radius: 4px;
        text-align: center;
        text-decoration: none;
        color: #ffffff !important;
      }
    </style>
  </head>

  <body>
    <div class="root-container">
      <div class="info-container">
        <img
          src="data:image/svg+xml;base64,[encoded data, 4472 characters]"
        />
        <!-- {{ if .Error }} -->
        <div class="title">{{ .Error | title }}</div>
        <div class="content">{{ .ErrorDescription }}</div>
        <!-- {{ else }} -->
        <div class="title">Authenticated</div>
        <div class="content">Go to <a href="{{.Host}}">{{.Host}}</a></div>
        <!-- {{ end }} -->
        <div class="content">
          You can close this tab. Or go to <a href="https://docs.databricks.com/dev-tools/index-cli.html">documentation</a>
        </div>
      </div>
    </div>
  </body>
</html>
