/*
recetium-frontend/assets/css/main.css
*/
/* recetium-frontend/assets/css/main.css */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap");

/* Color variables */
:root {
  --recetium-green: #6EEA8E;
  --white: #ffffff;
  --recetium-background: #F9F9F9;
  --pink: rgb(253, 163, 178);
  --recetium-lightgrey: #F3F3F3;
  --recetium-darkgrey: #5b5b5b;
}

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

/* Body */
body {
  background-color: var(--recetium-green);
  font-family: 'Lexend Deca', Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Splash container */
.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo */
.splash-logo {
  width: 140px;
  height: auto;
  margin-bottom: 20px;
}

/* Title */
.splash-title {
  color: var(--white);
  font-size: 2rem;
  font-weight: 400;
}

/* Add fade-out effect */
.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Login screen styles */
.login-container {
  background-color: var(--white);
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* separa arriba y centro */
  align-items: center;
  text-align: center;
  padding: 40px 0px; /* espacio arriba/abajo */
}

.login-title {
  font-family: 'Lexend Deca', Arial, Helvetica, sans-serif;
  color: var(--recetium-green);
  font-size: 2rem;
  font-weight: 400;
}

.login-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 310px;
  margin: auto 0; /* centra verticalmente */
}

.btn {
  font-family: 'Lexend Deca', Arial, Helvetica, sans-serif;
  padding: 12px;
  border-radius: 25px;
  font-size: 1.3rem;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--recetium-green);
  color: var(--white);
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--recetium-darkgrey);
  color: var(--recetium-darkgrey);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--recetium-green);
  font-weight: 300;
  font-size: 1.3rem;
}

.btn-alley {
  margin-bottom: 30px;
  background: transparent;
  border: none;
  color: var(--recetium-darkgrey);
  font-weight: 300;
  font-size: 1.3rem;
}

/* Register screen */
.register-container {
  background-color: var(--white);
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: top;;
  align-items: center;
  padding: 20px;
}

.register-title {
  font-family: 'Lexend Deca', Arial, sans-serif;
  color: var(--recetium-green);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 320px;
  /* margin: auto 0; */
}

.register-form input,
.register-form select {
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  outline: 2px solid var(--recetium-lightgrey);
  background-color: var(--white);
}

.register-form input:focus,
.register-form select:focus {
  outline: 2px solid var(--recetium-lightgrey);
}

#phone {
  margin-bottom: 40px;
}

.HOME {
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.HOME h1 {
  font-family: 'Lexend Deca', Arial, sans-serif;;
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  color: var(--white);
}

/* Loader overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-overlay.hidden {
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top: 6px solid var(--recetium-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Home Page Layout */
header {
  width: 100%;
  padding: 20px;
  text-align: center;
  background-color: var(--recetium-green);
}

header h1 {
  font-family: 'Lexend Deca', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
}

main {
  flex: 1;
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

main h2 {
  font-family: 'Lexend Deca', Arial, sans-serif;
  color: var(--recetium-darkgrey);
  font-size: 1.3rem;
  /* margin-bottom: 15px; */
  text-align: center;
}

/* Allies table */
#allies-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 1rem;
}

#allies-table th, #allies-table td {
  padding: 10px;
  border-bottom: 1px solid var(--recetium-lightgrey);
}

#allies-table th {
  background-color: var(--recetium-green);
  color: var(--white);
  font-weight: 500;
}

#allies-table tr:hover {
  background-color: #f9f9f9;
}

/* Footer */
footer {
  width: 100%;
  padding: 15px;
  text-align: center;
  background: var(--recetium-green);
  color: var(--white);
  font-size: 0.9rem;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
}
