﻿/* =========================================================
   BELEZA STUDIO - LOGIN
   Visual claro, moderno, dourado e responsivo
   ========================================================= */

/* =========================================================
   VARIÁVEIS
   ========================================================= */

:root {
  --bg: #f8fafc;
  --bg-soft: #eef2f7;
  --card: #ffffff;

  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --placeholder: #94a3b8;

  --border: #e2e8f0;
  --border-strong: #dbe2ea;

  --gold: #e59b23;
  --gold-light: #f5b544;
  --gold-soft: #fff5df;

  --green: #16a34a;
  --red: #dc2626;

  --shadow-card: 0 22px 58px rgba(15, 23, 42, 0.1);
  --shadow-button: 0 12px 24px rgba(229, 155, 35, 0.2);
}

/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-shadow: none;
}

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  flex-direction: column;

  font-family: "Inter", sans-serif;
  color: var(--text);

  overflow-x: hidden;

  background:
    radial-gradient(
      circle at top left,
      rgba(245, 181, 68, 0.18),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(229, 155, 35, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, var(--bg-soft) 100%);
}

button,
input,
textarea,
select {
  max-width: 100%;
  min-width: 0;
  font: inherit;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: clamp(30px, 6vw, 48px) 20px 22px;

  background: #ffffff;
  border-bottom: 1px solid var(--border);

  animation: fadeTop 0.5s ease;
}

.videoLogo {
  display: none;
}

.h1Sis {
  width: 100%;
  max-width: 900px;

  font-family: "Oswald", sans-serif;
  font-size: clamp(31px, 8vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: clamp(1px, 0.7vw, 3px);
  text-transform: uppercase;

  color: var(--text);
  overflow-wrap: break-word;
}

.h1Sis::after {
  content: "";
  display: block;

  width: 78px;
  height: 3px;

  margin: 18px auto 0;
  border-radius: 999px;

  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.h3INFI {
  width: 100%;
  max-width: 680px;

  margin-top: 14px;

  font-size: clamp(14px, 3.6vw, 17px);
  line-height: 1.5;
  font-weight: 500;

  color: var(--text);
}

/* =========================================================
   MAIN
   ========================================================= */

.main {
  width: 100%;
  flex: 1;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 18px 16px 48px;
}

/* =========================================================
   CARD LOGIN
   ========================================================= */

.containerlogin {
  position: relative;

  width: 100%;
  max-width: 460px;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 22px;

  overflow: hidden;

  padding: clamp(26px, 6vw, 40px);

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);

  color: var(--text);

  animation: fadeUp 0.5s ease;
}

.containerlogin::before {
  content: "";

  position: absolute;
  top: -70px;
  right: -70px;

  width: 180px;
  height: 180px;

  border-radius: 50%;
  background: rgba(245, 181, 68, 0.16);
  pointer-events: none;
}

.containerlogin::after {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background: linear-gradient(
    90deg,
    var(--gold-light),
    var(--gold),
    var(--gold-light)
  );
}

.divh4h5,
.form {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.h4Log {
  font-family: "Oswald", sans-serif;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: var(--text);
}

.h5Entre {
  margin-top: 8px;

  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;

  color: var(--muted);
}

/* =========================================================
   FORMULÁRIO
   ========================================================= */

.form {
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form label {
  margin-top: 4px;

  font-size: 14px;
  font-weight: 800;

  color: var(--text);
}

.form input {
  width: 100%;
  height: 54px;

  padding: 0 16px;

  border: 1px solid var(--border-strong);
  border-radius: 14px;

  background: #ffffff;
  color: var(--text);

  font-size: 16px;
  font-weight: 500;

  outline: none;
  box-shadow: none;

  appearance: none;
  -webkit-appearance: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form input::placeholder {
  color: var(--placeholder);
}

.form input:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(229, 155, 35, 0.14);
}

.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================
   BOTÕES
   ========================================================= */

.btEntrar {
  width: 100%;
  height: 56px;

  margin-top: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--text);
  box-shadow: var(--shadow-button);

  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btEntrar:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 30px rgba(229, 155, 35, 0.24);
}

.btEntrar:active {
  transform: scale(0.98);
}

.btEntrar:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   MENSAGEM LOGIN
   ========================================================= */

.messageLogin {
  width: 100%;
  max-width: 460px;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  margin: 16px auto 0;
  padding: 14px 18px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: #ffffff;
  color: var(--text);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);

  opacity: 0;
  transform: translateY(14px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.messageLogin.ativo {
  opacity: 1;
  transform: translateY(0);
}

.h1MessageCerto,
.h1MessageErrado {
  font-size: 15px;
  font-weight: 800;
}

.h1MessageCerto {
  color: var(--green);
}

.h1MessageErrado {
  color: var(--red);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  margin-top: auto;
  padding: 20px 16px;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   ANIMAÇÕES
   ========================================================= */

@keyframes fadeTop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVO - TABLET
   ========================================================= */

@media (max-width: 768px) {
  .header {
    padding: 34px 18px 20px;
  }

  .main {
    padding: 18px 16px 36px;
  }

  .containerlogin {
    border-radius: 20px;
  }
}

/* =========================================================
   RESPONSIVO - CELULAR
   ========================================================= */

@media (max-width: 480px) {
  body {
    background:
      radial-gradient(
        circle at top left,
        rgba(245, 181, 68, 0.16),
        transparent 34%
      ),
      linear-gradient(180deg, #ffffff 0%, var(--bg) 55%, var(--bg-soft) 100%);
  }

  .header {
    padding: 28px 16px 18px;
  }

  .main {
    padding: 16px 14px 32px;
  }

  .containerlogin {
    padding: 24px 18px 28px;
    border-radius: 18px;
  }

  .h5Entre {
    font-size: 14px;
  }

  .form input,
  .btEntrar {
    height: 52px;
  }

  .messageLogin {
    max-width: calc(100% - 28px);
  }
}

/* =========================================================
   RESPONSIVO - CELULAR PEQUENO
   ========================================================= */

@media (max-width: 360px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .containerlogin {
    padding: 22px 14px 26px;
  }

  .form input {
    padding: 0 14px;
  }
}
