/* Estilos da tela de login Galileu Cursos */

:root {
  --bg-page: #000000;
  --bg-card: #050505;
  --bg-input: #050505;
  --border-input: #22252b;
  --border-input-focus: #22252b;
  --text-primary: #ffffff;
  --text-muted: #8b8b8b;
  --accent: #ff7a00;
  --btn-bg: #333333;
  --btn-bg-hover: #444444;
  --btn-disabled: #2a2a2a;
  --radius-card: 20px;
  --radius-input: 3px;
  --shadow-card: 0 0 60px rgba(0, 0, 0, 0.8);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-family);
  background: radial-gradient(circle at top, #050505 0, #000000 55%, #000000 100%);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ajudantes de acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-page {
  width: 100%;
  max-width: 100vw;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 40px 48px 36px;
  max-width: 430px;
  width: 100%;
  box-shadow: var(--shadow-card);
  border: 1px solid #181a1f;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.login-logo {
  max-width: 220px;
  height: auto;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border-radius: 6px;
  border: 1px solid var(--border-input);
  overflow: hidden;
}

.input-wrapper:focus-within {
  border-color: var(--border-input-focus);
  box-shadow: none;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 13px 14px;
  font-size: 0.95rem;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

.input-wrapper input:focus {
  outline: none;
}

.input-icon,
.toggle-password {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--text-muted);
  border-right: 1px solid var(--border-input);
  height: 100%;
}

.input-icon {
  font-size: 0.9rem;
}

.toggle-password {
  background: transparent;
  border: none;
  cursor: pointer;
  border-right: 1px solid var(--border-input);
  font-size: 0.9rem;
}

.toggle-password:focus-visible {
  outline: 2px solid var(--border-input-focus);
  outline-offset: 2px;
}

.btn-submit {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--text-primary);
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-submit:hover {
  background: var(--btn-bg-hover);
}

.btn-submit:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--border-input-focus);
  outline-offset: 2px;
}

.btn-icon {
  opacity: 0.9;
}

/* Responsividade */
@media (max-width: 600px) {
  .login-card {
    padding: 28px 20px 24px;
    max-width: 100%;
  }

  .login-logo {
    max-width: 180px;
  }
}

@media (min-width: 1200px) {
  .login-card {
    transform: scale(1.02);
  }
}
