/**
 * Estilo da página de login (inspirado no portal).
 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  background: #181818;
  color: #fff;
  overflow: hidden;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}

#wrapper {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

#left {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

#right {
  flex: 1;
}

/* Sign In */
#signin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 380px;
  padding-bottom: 1rem;
}

#signin form {
  width: 100%;
  padding-bottom: 3rem;
}

#signin .logo {
  margin-bottom: 1rem;
}

.login-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
  font-size: 13px;
  font-weight: 500;
}

.login-lang-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.login-lang-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.login-lang-link.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.login-lang-sep {
  color: rgba(255,255,255,0.4);
  user-select: none;
}

#signin .logo .logo-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}

#signin label {
  display: block;
  font-size: 0.9rem;
  line-height: 2rem;
  font-weight: 500;
  color: #ccc;
}

#signin .text-input {
  margin-bottom: 1.3rem;
  width: 100%;
  border-radius: 2px;
  background: #181818;
  border: 1px solid #555;
  color: #fff;
  padding: 0.6rem 1rem;
  line-height: 1.4rem;
  font-size: 1rem;
  font-family: inherit;
}

#signin .text-input::placeholder {
  color: #666;
}

#signin .text-input:focus {
  outline: none;
  border-color: #51a0d0;
  box-shadow: 0 0 0 2px rgba(81, 160, 208, 0.2);
}

#signin .primary-btn {
  width: 100%;
  padding: 0.7rem 1rem;
  height: 2.7rem;
  display: block;
  border: 0;
  border-radius: 2px;
  font-weight: 500;
  font-size: 1rem;
  font-family: inherit;
  background: linear-gradient(121deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 67%, rgba(51,160,209,1) 70%, rgba(41,145,201,1) 80%, rgba(55,52,133,1) 80%, rgba(37,62,145,1) 90%, rgba(197,43,48,1) 90%);
  color: #000;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s, color 0.2s;
}

#signin .primary-btn:hover {
  opacity: 0.95;
  color: #c52b30;
  font-weight: 700;
}

#signin .or {
  display: flex;
  flex-direction: row;
  margin-bottom: 1.2rem;
  align-items: center;
  width: 100%;
}

#signin .or .bar {
  flex: auto;
  border: none;
  height: 1px;
  background: #555;
}

#signin .or span {
  color: #888;
  padding: 0 0.8rem;
  font-size: 0.9rem;
}

#signin .erro {
  color: #e57373;
  margin: 1rem;
  font-size: 0.95rem;
  text-align: center;
}

#signin .ebar {
  flex: auto;
  border: none;
  height: 1px;
  background: rgba(229, 115, 115, 0.5);
}

/* Showcase (painel direito) */
#showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #01579b 100%);
  height: 100vh;
  text-align: center;
  padding: 2rem;
}

#showcase .showcase-content {
  max-width: 420px;
}

#showcase .showcase-text {
  font-size: 2.2rem;
  width: 100%;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 400;
}

#showcase .showcase-text strong {
  font-weight: 700;
}

#showcase .showcase-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

/* Footer */
#main-footer {
  color: #888;
  text-align: center;
  font-size: 0.8rem;
  max-width: 80%;
  padding-top: 3rem;
}

#main-footer p {
  margin: 0;
}

/* Media Queries */
@media (min-width: 1200px) {
  #left {
    flex: 4;
  }
  #right {
    flex: 6;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  #right {
    display: none;
  }

  #left {
    justify-content: flex-start;
    margin-top: 10vh;
    padding-bottom: 2rem;
  }

  #signin .logo {
    margin-bottom: 4vh;
  }

  #signin .text-input {
    margin-bottom: 0.9rem;
  }

  #main-footer {
    padding-top: 1.5rem;
  }
}
