
/* Base & Reset */
:root {
  --certify-dark-blue: #0B1C40;
  --certify-navy: #102652;
  --certify-blue: #1a3a8b;
  --certify-sky: #2564eb;
  --certify-orange: #f97316;
  --certify-yellow: #F59E0B;
  --certify-light-blue: #93c5fd;
  --certify-white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 10px 25px -3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-50);
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none;
  color: var(--certify-sky);
  transition: color 0.2s;
}

a:hover {
  color: var(--certify-blue);
}

button {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shooting {
  0% {
    transform: translateX(0) translateY(0) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: translateX(1000px) translateY(-300px) rotate(-45deg);
    opacity: 0;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.login-form-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: white;
  order: 2;
}

.login-form-wrapper {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--certify-dark-blue);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 0.875rem;
  color: rgba(26, 58, 139, 0.8);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--certify-navy);
}

.forgot-password {
  font-size: 0.75rem;
  color: var(--certify-sky);
}

.input-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  background-color: var(--gray-50);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--certify-sky);
  box-shadow: 0 0 0 2px rgba(37, 100, 235, 0.2);
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--certify-blue);
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--gray-300);
  appearance: none;
  background-color: white;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.checkbox:checked {
  background-color: var(--certify-sky);
  border-color: var(--certify-sky);
}

.checkbox:checked::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  transform: scale(1);
  box-shadow: inset 1rem 1rem white;
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox-label {
  font-size: 0.875rem;
  color: rgba(26, 58, 139, 0.8);
  user-select: none;
}

.login-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #0143a5;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.login-button:hover {
  background-color: #002761;
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.signup-container {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(26, 58, 139, 0.7);
}

.signup-link {
  font-weight: 500;
  margin-left: 0.25rem;
}

.footer {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(26, 58, 139, 0.6);
  padding-top: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

/* Animated Background */
.animated-background {
  height: 30vh;
  position: relative;
  overflow: hidden;
  background: url('./img/fundo.jpg') no-repeat center center;
  background-size: cover;
  order: 1;
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background-color: white;
  animation: pulse 4s ease-in-out infinite;
}

.shooting-star {
  position: absolute;
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
  transform: rotate(-45deg);
  animation: shooting 2s linear infinite;
}

.clouds {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: 0.5s;
}

.cloud {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.cloud1 {
  width: 6rem;
  height: 3rem;
  bottom: 10%;
  left: 10%;
}

.cloud2 {
  width: 8rem;
  height: 4rem;
  bottom: 5%;
  left: 30%;
  animation-duration: 8s;
}

.cloud3 {
  width: 7rem;
  height: 3.5rem;
  bottom: 8%;
  right: 20%;
  animation-delay: 1s;
}

.cloud4 {
  width: 9rem;
  height: 4.5rem;
  bottom: 3%;
  right: 35%;
  animation-duration: 8s;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 250px;
  padding: 16px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: white;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background-color: #10b981;
}

.toast-error {
  background-color: #ef4444;
}

.toast-info {
  background-color: #3b82f6;
}

.toast-warning {
  background-color: #f59e0b;
}

/* Dashboard */
.dashboard-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  background-color: var(--certify-dark-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  color: var(--certify-orange);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-button {
  background: transparent;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.icon-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dashboard-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--certify-dark-blue);
}

.primary-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0143a5;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.primary-button:hover {
  background-color: #002761;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.card-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.badge-green {
  background-color: #10b981;
}

.badge-blue {
  background-color: var(--certify-sky);
}

.card-description {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.card-content {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.card-footer {
  padding: 1rem;
}

.outline-button {
  width: 100%;
  padding: 0.5rem;
  background-color: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s;
}

.outline-button:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-400);
}

/* Media Queries */
@media (min-width: 768px) {
  .login-container {
    grid-template-columns: 0.5fr 1fr;
  }
  
  .login-form-container {
    order: 1;
  }
  
  .animated-background {
    height: 100vh;
    order: 2;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.alert-message {
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.text-red-700 {
  color: #b91c1c;
}

.text-red-500 {
  color: #ef4444;
}

.bg-green-50 {
  background-color: #f0fdf4;
}

.text-green-700 {
  color: #15803d;
}

.text-green-500 {
  color: #22c55e;
}
