@charset "UTF-8";

/* ===== DESIGN TOKENS ===== */
:root {
  --color-primary:       oklch(0.5535 0.15 138.54);
  --color-primary-hover: oklch(0.467  0.142 130.8);
}

/* ===== FONTS ===== */
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans"), local("OpenSans"),
       url("/static/fonts/opensans/opensans-regular-webfont.woff2") format("woff2"),
       url("/static/fonts/opensans/opensans-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src: local("Open Sans Bold"), local("OpenSans-Bold"),
       url("/static/fonts/opensans/opensans-bold-webfont.woff2") format("woff2"),
       url("/static/fonts/opensans/opensans-bold-webfont.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src: local("Open Sans Light"), local("OpenSans-Light"),
       url("/static/fonts/opensans/opensans-light-webfont.woff2") format("woff2"),
       url("/static/fonts/opensans/opensans-light-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset, img {
  border: 0;
}

address, caption, cite, code, dfn, em, strong, th, var, optgroup {
  font-style: inherit;
  font-weight: inherit;
}

li {
  list-style: none;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: normal;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
}

:focus {
  outline: none;
}

/* ===== UTILITY ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== TYPOGRAPHY ===== */
strong { font-weight: bold; }
em { font-style: italic; }

p {
  margin: 10px 0;
  line-height: 1.5;
}

label, .smaller {
  font-size: 11px;
}

h1, .h1 {
  color: #2e2e2e;
  font-size: 167%;
  margin-bottom: 1em;
  line-height: 1em;
}

h2, .h2 {
  color: #2e2e2e;
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

a, a:link, a:visited {
  color: #509e2f;
  text-decoration: none;
  transition: color 200ms;
}

a:hover {
  color: #509e2f;
  text-decoration: underline;
}

/* ===== LAYOUT ===== */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
header {
  z-index: 50;
  padding: 25px 0 12px;

  & .logo {
    display: block;
    width: 300px;
    height: 44px;
    margin: 0 auto;
    background: url("/images/ww-style/ww-Logo-RGB.svg") no-repeat center;
  }
}

/* ===== FOOTER ===== */
footer nav {
  text-align: center;
  font-size: 14px;
  margin-top: 30px;
  padding-bottom: 25px;

  & ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  & li + li::before {
    content: "|";
    color: #509e2f;
    margin: 0 4px;
  }

  & a:any-link {
    color: #509e2f;
  }
}

/* ===== FORMS ===== */
form {
  position: relative;
  text-align: left;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  font-weight: normal;
  -webkit-appearance: none;
  font-size: 11px;
  color: #2e2e2e;
  height: 23px;
  padding: 0 7px 0 8px;
  border: 1px solid #ccc;
}

/* ===== LOGIN ===== */
#login {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;

  & form {
    background: #fff;
    padding: 32px;
    position: relative;
    border: 1px solid #ccc;
    width: 412px;
  }

  & form .line {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 24px;
  }

  & form .line label {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.54);
    margin-bottom: 6px;
  }

  & form .line.submit-line {
    margin-top: 4px;
    margin-bottom: 0;
  }

  & form .line input[type="email"],
  & form .line input[type="password"] {
    display: block;
    width: 100%;
    height: 48px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.87);
    padding: 0 12px;
    border: 1px solid oklch(0.681 0 0);

    &:focus {
      border: 2px solid var(--color-primary);
      padding: 0 11px;
    }
  }

  & form div.errors {
    margin-top: 16px;
    padding: 0;
  }

  & button[type="submit"] {
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    height: 48px;
    padding: 0;
    border: none;
    line-height: 1;
    transition: background 0.15s;

    &:hover {
      background: var(--color-primary-hover);
    }
  }
}

/* ===== ERROR PAGE ===== */
.page-content {
  width: 100%;
  flex: 1;
}

.error-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 500px;
  margin: 30px auto 0;
  text-align: center;

  & p {
    margin: 0 0 1.5em;
    font-size: 12px;
    line-height: 18px;
  }

  & h1 {
    margin-top: 2em;
  }

  & hr {
    background-color: #ccc;
    height: 1px;
    border: none;
  }
}

/* ===== WW-STYLE-BODY ===== */
html, body.ww-style-body {
  background: #fff;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: #2e2e2e;
  margin: 0;
  min-width: 1200px;
  padding-top: 0;
  font-size: 14px;
  line-height: 1;
}

body.ww-style-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  & hr {
    height: 1px;
    background: #dcdcdc;
    border: none;
  }

  & .no-script {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: #fc6b00;

    & p {
      font-weight: bold;
      position: relative;
      color: #303030;
      text-align: center;
      z-index: 2;
    }

    & .icon {
      cursor: default;
    }
  }

  & .error, & .error input[type="text"],
  & .error input[type="email"],
  & .error input[type="password"],
  & .errors, & .errors li {
    border-color: oklch(0.55 0.2 30);
    color: oklch(0.55 0.2 30);
  }

  & .errors {
    & ul + ul { margin-top: 5px; }

    & li {
      white-space: normal;
      line-height: 1.3;

      & + li { margin-top: 5px; }
    }

    & + .errors { margin-top: 5px; }
  }
}

#site {
  flex: 1;
  width: 1200px;
  margin: 0 auto;
}