@font-face {
  font-family: "RaleRegular";
  src: url(../assets/fonts/Raleway-VariableFont_wght.ttf) format("truetype");
  font-weight: normal;
}

@font-face {
  font-family: "Roboto";
  src: url(../assets/fonts/Roboto-VariableFont_wdth,wght.ttf) format("truetype");
  font-weight: normal;
}

/* =======================
GLOBAL RESET
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "RaleRegular", sans-serif;
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* =======================
MAIN CONTAINER
======================= */
.Main-container {
  display: flex;
  width: 1000px;
  max-width: 95%;
  height: 650px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* =======================
LEFT IMAGE BOX
======================= */
.Box-img {
  flex: 1;
  background-color: #eaeaea;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =======================
LOGIN CONTAINER
======================= */
.Login-container {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
  position: relative;
}

/* =======================
COMPANY SECTION
======================= */
.Company-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.Logo-container img {
  width: 120px;
  height: auto;
}

.Company-container h1 {
  font-size: 40px;
  color: #267e2f;
  margin-top: 10px;
}

/* =======================
FORM ELEMENTS
======================= */
.Login-container form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.Login-container input {
  width: 100%;
  max-width: 320px;
  padding: 14px 18px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
}

.Login-container input:focus {
  border-color: #267e2f;
  box-shadow: 0 0 6px rgba(38, 126, 47, 0.3);
}

.Login-container button {
  width: 100%;
  max-width: 320px;
  background-color: #267e2f;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 18px;
  margin-top: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.Login-container button:hover {
  background-color: #54a13e;
}

/* =======================
ADMIN LINK
======================= */
.Admin {
  text-align: center;
  margin-top: 20px;
}

.Admin a {
  display: inline-block;
  background-color: #fab221;
  color: #333;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.Admin a:hover {
  background-color: #f9c854;
}

/* =======================
BACK BUTTON
======================= */
.back-button {
  position: absolute;
  bottom: 25px;
  left: 25px;
  color: #333;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
  color: #267e2f;
  transform: translateX(-3px);
}

/* =======================
MODAL
======================= */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.modal-content button {
  background-color: #267e2f;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background-color: #54a13e;
}

/* =======================
RESPONSIVE
======================= */
@media (max-width: 950px) {
  .Main-container {
    flex-direction: column;
    height: auto;
  }

  .Box-img {
    display: none;
  }

  .Login-container {
    width: 100%;
    padding: 40px 20px;
  }

  .back-button {
    position: static;
    margin-top: 20px;
    text-align: center;
  }
}
