/* ===================================================
   Estágio Fácil — Login CSS
   Paleta: Azul Oceano + Ciano
   =================================================== */

:root {
  --primary-color: #0369a1;
  --primary-hover: #0284c7;
  --primary-light: rgba(3, 105, 161, 0.1);
  --accent-color: #06b6d4;
  --accent-light: rgba(6, 182, 212, 0.12);
  --gradient-hero: linear-gradient(135deg, #0369a1 0%, #0891b2 50%, #06b6d4 100%);
  --background-color: #ffffff;
  --secondary-color: #f0f9ff;
  --text-color: #0c1a2e;
  --text-muted: #4b6280;
  --text-subtle: #94a3b8;
  --border-color: #bae6fd;
  --border-subtle: #e0f2fe;
  --shadow-sm: 0 2px 8px rgba(3, 105, 161, 0.08);
  --shadow: 0 4px 16px rgba(3, 105, 161, 0.12);
  --shadow-md: 0 8px 32px rgba(3, 105, 161, 0.16);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-full: 999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Login Page */
.login-container {
  display: flex;
  min-height: calc(100vh - 4.25rem);
  background-color: var(--secondary-color);
}

.login-card {
  width: 100%;
  max-width: 460px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  background-color: var(--background-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border-subtle);
  align-self: flex-start;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header .logo-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-hero);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

.login-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 0.4rem;
  letter-spacing: -0.025em;
  font-family: var(--font-body);
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.login-form .form-group {
  margin-bottom: 1.25rem;
}

.login-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-color);
  font-family: var(--font-body);
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.875rem;
  z-index: 1;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition);
  background: var(--background-color);
  color: var(--text-color);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-with-icon input::placeholder {
  color: var(--text-subtle);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.remember-me label {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 400;
}

.forgot-password {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.forgot-password:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.btn-block {
  display: flex;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  min-height: 3rem;
  font-family: var(--font-body);
}

.btn-block.btn-primary {
  background: var(--gradient-hero);
  color: white;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.3);
}

.btn-block.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(3, 105, 161, 0.4);
  transform: translateY(-1px);
}

.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-subtle);
}

.divider span {
  position: relative;
  background-color: var(--background-color);
  padding: 0 0.875rem;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  font-weight: 500;
}

.social-login {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background-color: var(--background-color);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
  font-family: var(--font-body);
  min-height: 2.75rem;
}

.social-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.social-btn.google img {
  width: 1.125rem;
  height: 1.125rem;
}

.social-btn.linkedin i {
  color: #0077b5;
  font-size: 1.125rem;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.login-footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Login image panel */
.login-image {
  display: none;
  flex: 1;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.login-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.image-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  z-index: 1;
}

.quote-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.quote-text {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.quote-text i {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.375rem;
}

.quote-text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-color);
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quote-author img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.quote-author h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--text-color);
  font-family: var(--font-body);
}

.quote-author p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Header auth active state */
.auth-buttons .btn.active {
  background: var(--gradient-hero);
  color: white;
  border-color: transparent;
}

/* Responsive */
@media (min-width: 768px) {
  .login-card {
    margin: 4rem auto;
    padding: 3rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .login-container {
    background-color: var(--background-color);
  }

  .login-card {
    margin: auto 0 auto 10%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 480px;
  }

  .login-image {
    display: block;
  }
}

@media (min-width: 1280px) {
  .login-card {
    margin: auto 0 auto 15%;
  }
}
