body {
  transition: opacity ease-in 0.2s;
}

body[unresolved] {
  opacity: 0;
  display: block;
  overflow: hidden;
  position: relative;
}

html {
  font-size: 10px;
}

.splash {
  width: 30rem;
  margin: 20rem auto;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial;
}

@media (max-width: 50rem) {
  .splash {
    margin-top: 10rem;
  }
}

.head {
  margin-bottom: 4rem;
}

.logos {
  position: relative;
  margin-bottom: 4rem;
}

.logo {
  width: 4.8rem;
  height: 4.8rem;
  display: inline-block;
  background-size: cover;
}

.logo.slack {
  background-image: url(../assets/slack.svg);
}

.logo.org::after {
  position: absolute;
  display: block;
  content: "+";
  top: 1.5rem;
  left: 0;
  width: 30rem;
  text-align: center;
  color: #D6D6D6;
  font-size: 1.5rem;
  font-family: Helvetica Neue;
}

.logo.org {
  background-image: url(../assets/logo-org.png);
  margin-right: 7rem;
}

.coc {
  font-size: 1.2rem;
  padding: 1.5rem 0 .5rem;
  color: #666;
}

.coc label {
  cursor: pointer;
}

.coc input {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  vertical-align: middle;
  margin: 0 .5rem 0 0;
}

.coc input::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: middle;
  background: url(/assets/checkbox.svg);
  cursor: pointer;
}

.coc input:checked::after {
  background-position: right;
}

.coc a {
  color: #666;
}

.coc a:hover {
  background-color: #666;
  text-decoration: none;
  color: #fff;
}

p {
  font-size: 1.5rem;
  margin: .5rem 0;
}

select {
  background: none;
}

button,
.form-item {
  font-size: 1.2rem;
  margin-top: 1rem;
  vertical-align: middle;
  display: block;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  padding: .9rem;
}

button {
  color: #fff;
  font-weight: bold;
  border-width: 0;
  background: #E01563;
  text-transform: uppercase;
  cursor: pointer;
  appearence: none;
  -webkit-appearence: none;
  outline: 0;
  transition: background-color 150ms ease-in, color 150ms ease-in;
}

button.loading {
  pointer-events: none;
}

button:disabled {
  color: #9B9B9B;
  background-color: #D6D6D6;
  cursor: default;
  pointer-events: none;
}

button.error {
  background-color: #F4001E;
  text-transform: none;
}

button.success:disabled {
  color: #fff;
  background-color: #68C200;
}

button:not(.disabled):active {
  background-color: #7A002F;
}

b {
  transition: transform 150ms ease-in;
}

b.grow {
  transform: scale(1.3);
}

form {
  margin-top: 2rem;
  margin-bottom: 0;
}

input {
  color: #9B9B9B;
  border: .1rem solid #D6D6D6;
}

input:focus {
  color: #666;
  border-color: #999;
  outline: 0;
}

.active {
  color: #E01563;
}

p.signin {
  padding: 1rem 0 1rem;
  font-size: 1.1rem;
}

p.signin a {
  color: #E01563;
  text-decoration: none;
}

p.signin a:hover {
  background-color: #E01563;
  color: #fff;
}

footer {
  color: #D6D6D6;
  font-size: 1.1rem;
  margin: 20rem auto 0;
  width: 30rem;
  text-align: center;
}

footer a {
  color: #9B9B9B;
  text-decoration: none;
  border-bottom: .1rem solid #9B9B9B;
}

footer a:hover {
  color: #fff;
  background-color: #9B9B9B;
}

.message {
  margin-top: 1rem;
  padding: 1rem;
  text-align: center;
  border-radius: 0.3rem;
  font-size: 1.2rem;
  animation: fadeIn 0.3s ease-in;
}

.message.success {
  background-color: #68C200;
  color: #fff;
}

.message.error {
  background-color: #F4001E;
  color: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Screen reader only - для доступности */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Семантические стили */
h1 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  font-weight: normal;
}

strong {
  font-weight: bold;
}

