/* Provided by user in prompt; placed as-is */
html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 5px;
    padding: 48px 40px;
    width: min(560px, 92vw);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 1px;
    right: 1px;
    width: 48px;
    height: 48px;
    background: radial-gradient(circle, #a78b6b 1.5px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.3;
}

.login-card::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 1px;
    width: 48px;
    height: 48px;
    background: radial-gradient(circle, #a78b6b 1.5px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.3;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 600;
    color: #1e1e1e;
    text-decoration: none;
    width: 237px;
    height: 62px;
}

.logo-img {
    width: 237px !important;
    height: 62px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.form-control {
    border: 1px solid #e9edf4;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    min-height: 48px; /* alvo de toque confortável */
    background: #fcfdfe;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.form-control::placeholder {
    color: #d3d6dc; /* mais claro para maior contraste */
    opacity: 0.95;  /* mais visível */
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.form-control:focus {
    border-color: #a78b6b;
    box-shadow: 0 0 0 3px rgba(167, 139, 107, 0.18);
    background: #ffffff;
}

.btn-login {
    background: #1e1e1e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: all 0.2s ease;
    margin-bottom: 24px;
    min-height: 48px; /* alvo de toque confortável */
}

.btn-login:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
}

/* Sem elementos de cadastro/signup nesta UI */

.error-list {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    list-style: none;
}

.error-list li {
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 4px;
}

.error-list li:last-child {
    margin-bottom: 0;
}

/* Validação de formulários */
.form-control.is-invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-control.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.invalid-feedback {
    display: none;
    color: #dc2626;
    font-size: 13px;
    margin-top: -16px;
    margin-bottom: 16px;
    padding-left: 4px;
}

.btn-login:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
}

/* Tablets e telas médias */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .login-card {
    padding: 36px 28px;
    width: min(560px, 94vw);
  }

  .logo-container {
    margin-bottom: 32px;
  }

  .logo {
    width: 200px;
    height: 52px;
    font-size: 24px;
  }

  .logo-img {
    width: 200px !important;
    height: 52px;
  }

  .form-control {
    padding: 14px;
    font-size: 15px;
    margin-bottom: 18px;
  }

  .btn-login {
    padding: 14px;
    font-size: 15px;
    margin-bottom: 20px;
  }
}

/* Smartphones (substitui só algumas linhas do seu bloco @media (max-width: 480px)) */
@media (max-width: 480px) {
  body {
    padding: 12px;
    align-items: flex-start;
    padding-top: 6vh; /* um pouco mais de respiro em telas baixas */
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .login-card {
    /* ocupa quase toda a largura, com margem consistente */
    width: calc(100vw - 24px);
    max-width: 520px; /* só por segurança */
    padding: 28px 20px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  }

  .logo {
    /* Remova width/height fixos aqui se possível; deixe o img controlar */
    width: auto;
    height: auto;
    font-size: 22px;
    gap: 8px;
  }

  .logo-img {
    width: clamp(220px, 70vw, 300px) !important;
    height: auto;
    margin-right: 8px;
  }
}

/* Smartphones pequenos (substitui só algumas linhas do seu bloco @media (max-width: 360px)) */
@media (max-width: 360px) {
  body {
    padding: 8px;
    padding-top: 5vh;
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }

  .login-card {
    width: calc(100vw - 16px);
    padding: 24px 16px;
  }

  .logo-img {
    width: clamp(200px, 78vw, 280px) !important;
    height: auto;
  }
}