/* =================== Base Styling =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #FFF5F7;
  width: 100%;
  min-height: 100vh;
}


/* Navbar */
.navbar {
    background-color:  #2A2B2D;
    display: flex;
    width: 100%;
    max-width: 1520px;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    height: 90px;
    box-shadow: 0 2px 5px rgba(42, 43, 45, 0.1);
    margin: 0 auto;
}

.navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.navbar-title {
    font-size: 32px;
    font-weight: bold;
    color:  #FFF5F7;
    flex-grow: 1;
    text-align: center;
}



/* Logo Styling */
.logo-container {
    width: 60px;
    height: 60px;
    background-color: #FFF5F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 50px;
    font-weight: 600;
    color:  #2A2B2D;
    font-family: 'Times New Roman';
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

/* --- Custom Animated Back Button --- */
.back-button {
    display: block;
    position: absolute;
    top: 100px;
    left: 20px;
    width: 56px;
    height: 56px;
    background-color: transparent;
    cursor: pointer;
    border: 0;
    overflow: hidden;
    outline: none;
}

.back-button:before,
.back-button:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
}

.back-button:before {
    border: 4px solid #2A2B2D;
    transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
}

.back-button:after {
    border: 4px solid #2A2B2D;
    transform: scale(1.3);
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
}

.back-button:hover:before {
    opacity: 0;
    transform: scale(0.7);
}

.back-button:hover:after {
    opacity: 1;
    transform: scale(1);
}

.button-box {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.button-elem {
    display: block;
    width: 20px;
    height: 20px;
    margin: 17px 18px 0 18px;
    transform: rotate(180deg);
    fill: #4A403A;
}

.back-button:hover .button-box {
    transition: 0.4s;
    transform: translateX(-56px);
}



/* =================== Sign-In Container =================== */
.container {
  background-color: white;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 50px auto;
}

h2 {
  font-size: 24px;
  color: #4A403A;
  margin-bottom: 20px;
}

.message {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: 0.3s ease-in-out;
}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #2A2B2D;
  outline: none;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #2A2B2D;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  transition: 0.3s;
}

button:hover {
  color: #e5ff00;
}

.btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  display: block;
  font-size: 16px;
  transition: 0.3s;
}


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

p {
  margin-top: 15px;
  font-size: 14px;
  color: #4A403A;
}

p a {
  color: #2A2B2D;
  text-decoration: none;
  font-weight: bold;
}

p a:hover {
  text-decoration: underline;
}

hr {
  margin: 20px 0;
  border: 0;
  height: 1px;
  background-color: #ccc;
}




/* =================== Responsive =================== */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
  }

  .logo-container {
    width: 45px;
    height: 45px;
  }

  .logo-text {
    font-size: 26px;
  }

  .navbar-title {
    font-size: 20px;
    margin-top: 8px;
  }


  h2 {
    font-size: 20px;
  }

  input[type="email"],
  input[type="password"],
  .btn,
  button {
    font-size: 14px;
    padding: 12px;
    width: 100%;
  }

  .forgot-password,
  p,
  p a {
    font-size: 13px;
  }

  .back-button {
    display: block;
    position: absolute;
    top: 120px;
    left: 20px;
    width: 56px;
    height: 56px;
    margin: 0;
    overflow: hidden;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    border: 0;
  }
  
  .back-button:before,
  .back-button:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
  }
  
  .back-button:before {
    border: 4px solid #4A403A;
    transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
  }
  
  .back-button:after {
    border: 4px solid #8C4A32;
    transform: scale(1.3);
    transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
  }
  
  .back-button:hover:before {
    opacity: 0;
    transform: scale(0.7);
  }
  
  .back-button:hover:after {
    opacity: 1;
    transform: scale(1);
  }
  
  .button-box {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .button-elem {
    display: block;
    width: 20px;
    height: 20px;
    margin: 17px 18px 0 18px;
    transform: rotate(180deg);
    fill: #4A403A;
  }
  
  .back-button:hover .button-box {
    transition: 0.4s;
    transform: translateX(-56px);
  }
  
}
