@import url(
  'https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap'
);

/* ===================================================== */
/* RESET                                                 */
/* ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #f4f4f4;
  color: #333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* ===================================================== */
/* NAVEGAÇÃO                                             */
/* ===================================================== */

nav {
  padding: 20px;
}

.logo-nav a {
  display: inline-block;
}

.logo-nav a img {
  display: block;
  max-height: 50px;
}

/* ===================================================== */
/* ÁREA PRINCIPAL                                        */
/* ===================================================== */

section {
  padding: 40px 20px;
}

.form-container {
  width: 100%;
  max-width: 420px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 8px 24px rgba(0,0,0,.1);
  text-align: center;
}

/* ===================================================== */
/* TÍTULO                                                */
/* ===================================================== */

h1 {
  margin-bottom: 8px;
  color: #2c3e50;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
}

.login-subtitle {
  margin: 0 auto 26px;
  color: #777;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  line-height: 1.5;
}

/* ===================================================== */
/* LISTA SOCIAL                                          */
/* ===================================================== */

.social-login-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===================================================== */
/* BOTÕES                                                */
/* ===================================================== */

.social-login-btn {
  position: relative;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 11px 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: 'Poppins', sans-serif;
  font-size: .94rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform .12s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease,
    opacity .2s ease;
}

.social-login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.social-login-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.social-login-btn:disabled {
  opacity: .62;
  cursor: wait;
}

/* ===================================================== */
/* LOGOS                                                 */
/* ===================================================== */

.social-logo {
  position: absolute;
  left: 16px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===================================================== */
/* GOOGLE                                                */
/* ===================================================== */

.google-login-btn {
  border-color: #dadce0;
  background: #fff;
  color: #3c4043;
  box-shadow:
    0 1px 2px rgba(60,64,67,.12);
}

.google-login-btn:hover:not(:disabled) {
  border-color: #c9cdd2;
  background: #f8f9fa;
  box-shadow:
    0 2px 6px rgba(60,64,67,.16);
}

.google-login-btn:focus-visible {
  outline:
    3px solid rgba(66,133,244,.2);
  outline-offset: 2px;
}

/* ===================================================== */
/* DISCORD                                               */
/* ===================================================== */

.discord-login-btn {
  border-color: #5865f2;
  background: #5865f2;
  color: #fff;
  box-shadow:
    0 2px 6px rgba(88,101,242,.25);
}

.discord-login-btn:hover:not(:disabled) {
  background: #4752c4;
  border-color: #4752c4;
  box-shadow:
    0 4px 10px rgba(88,101,242,.3);
}

.discord-login-btn:focus-visible {
  outline:
    3px solid rgba(88,101,242,.25);
  outline-offset: 2px;
}

/* ===================================================== */
/* SPINNER                                               */
/* ===================================================== */

.social-spinner {
  position: absolute;
  right: 16px;
  width: 17px;
  height: 17px;
  display: none;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation:
    socialSpinner .7s linear infinite;
}

.google-login-btn .social-spinner {
  border-color:
    rgba(66,133,244,.18);
  border-top-color:
    #4285f4;
}

.social-login-btn.loading .social-spinner {
  display: block;
}

@keyframes socialSpinner {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================================== */
/* MENSAGENS                                             */
/* ===================================================== */

.mensagem-status {
  min-height: 22px;
  margin: 18px 0 4px;
  padding: 0 4px;
  font-family: 'Poppins', sans-serif;
  font-size: .86rem;
  line-height: 1.45;
}

.mensagem-status.error {
  color: #d32f2f;
}

.mensagem-status.success {
  color: #238636;
}

/* ===================================================== */
/* REGISTRO                                              */
/* ===================================================== */

.link-container {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #777;
  font-family: 'Poppins', sans-serif;
  font-size: .86rem;
}

.link-container a {
  color: #667eea;
  font-weight: 500;
  text-decoration: none;
}

.link-container a:hover {
  text-decoration: underline;
}

/* ===================================================== */
/* RESPONSIVIDADE                                        */
/* ===================================================== */

@media (max-width: 600px) {
  nav {
    padding: 16px;
  }

  section {
    padding: 20px 14px 36px;
  }

  .form-container {
    max-width: 420px;
    margin: 20px auto;
    padding: 28px 20px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .login-subtitle {
    margin-bottom: 22px;
    font-size: .85rem;
  }

  .social-login-btn {
    min-height: 50px;
    padding-left: 42px;
    padding-right: 42px;
    font-size: .88rem;
  }

  .social-logo {
    left: 14px;
    width: 21px;
    height: 21px;
  }

  .social-spinner {
    right: 14px;
  }
}

@media (max-width: 360px) {
  .form-container {
    padding: 24px 15px;
  }

  .social-login-btn {
    font-size: .82rem;
  }
}