/*************************************/
/************ GLOBAL CSS *************/
/*************************************/
:root {
  --primary-color: #c72929;
  --primary-hover-color: #b52323;
  --input-background: #f8f9fa;
  --input-focus-shadow: rgba(199, 41, 41, 0.2);
  --animation-timing: 0.3s ease-in-out;
  --input-border-color: #ecedec;
}

body.dark-mode{
  --background-color:#191919;
  --card-background:#212121;
  --primary-background:#121212;
  --input-background:#000000;
  --text-color:#FFFFFF;
  --text-muted:#DDDDDD;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #e0e0e0 0%, #cfcfcf 100%); /* Updated to grey shades */
  display: flex;
  align-items: center;
  justify-content: center;
}

/*************************************/
/************ LOGIN FORM *************/
/*************************************/
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 450px !important;
  padding: 15px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: white;
  border-radius: 15px;
  padding: 25px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* .form:hover {
  transform: translateY(-5px);
} */

.form-header {
  text-align: center;
  margin-bottom: 15px;
}

.form-header h2 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.7rem;
  font-weight: bold;
}

.form-header p {
  color: #777;
  font-size: 0.9rem;
}

::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.form button {
  align-self: flex-end;
}

.flex-column {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
}

.flex-column>label {
  color: #151717;
  font-weight: 600;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

.inputForm {
  position: relative;
  height: 45px;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 2px 5px rgba(15, 15, 15, 0.1);
  border: 2px solid #d1d1d1; /* Retain only the outer border */
  display: flex;
  align-items: center;
  padding-left: 10px;
  transition: border-color 0.3s ease-in-out; /* Removed box-shadow transition */
}

.inputForm:focus-within {
  border-color: var(--primary-color);
  /* Removed box-shadow effect */
}

.inputForm svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  fill: var(--primary-color);
}

.input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none; /* Removed inner border */
  outline: none;
  border-radius: 10px;
  padding: 0 15px 0 25px;
  font-size: 15px;
  transition: all 0.3s;
  border: 1px solid var(--input-border-color);
  margin-left: 15px;
}

.input:focus {
  border-color: #6c63ff;
  -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  margin-top: 0;
}

.remember {
  align-items: baseline;
  gap: 5px;
}

.remember input {
  accent-color: var(--primary-color);
  height: 12px;
}

.flex-row {
  display: flex;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 5px;
  flex-direction: row;
  gap: 8px;
  justify-content: space-between;
}

.flex-row>div>label {
  font-size: 14px;
  color: black;
  font-weight: 400;
}

.span {
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.button-submit {
  width: 100%;
  height: 45px;
  margin: 8px 0;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 5px 15px rgba(199, 41, 41, 0.35);
  transition: all var(--animation-timing);
}

.button-submit:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-2px);
}

.button-submit:active {
  transform: translateY(0);
}

.p {
  text-align: center;
  margin: 12px 0;
  font-size: 14px;
  color: #555;
}

.span-2 {
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.p a{
  text-decoration: none;
}

a {
  text-decoration: none;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.divider span {
  padding: 0 10px;
  color: #777;
  font-size: 14px;
}

.btn1 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 45px;
  border-radius: 10px;
  border: 1px solid #ddd !important;
  background-color: white !important;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 5px;
  gap: 10px;
  font-size: 14px;
}

.btn svg {
  margin-right: 10px;
}

.google:hover {
  background-color: #f8f9fa !important;
  border-color: var(--primary-color) !important;
}

.return-home {

  text-align: center;
  margin-top: 12px;
}

.return-home a {
  color: #555;
  font-size: 14px;
  transition: color 0.3s;
}

.return-home a:hover {
  color: var(--primary-color);
}

@media (max-width: 480px) {
  .container {
    padding: 8px;
  }

  .form {
    padding: 18px;
  }

  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

body.dark-mode {
  background: linear-gradient(135deg, var(--card-background) 0%, var(--background-color) 100%) ;
}

.dark-mode .form,.dark-mode .return-home{
  background-color: var(--card-background);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.dark-mode .return-home a,.dark-mode .divider,.dark-mode .divider span,.dark-mode .p,.dark-mode .form-header p, .dark-mode .flex-column>label,.dark-mode input{
  color:var(--text-muted);
}


.return-home {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: white;
  border: 1px solid var(--primary-color); /* Changed border color to red */
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.return-home a {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.return-home:hover {
  background-color: var(--primary-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.return-home a:hover {
  color: white;
}

@media (max-width: 480px) {
  .container {
    padding: 8px;
  }

  .form {
    padding: 18px;
  }

  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}