/* =================== 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);
}


/* =================== Modal Sign-Up Section =================== */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: #fff;
  max-width: 420px;
  width: 100%;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin-top: 40px;
}

.form-title {
  font-size: 26px;
  font-weight: bold;
  color: #2A2B2D;
  margin-bottom: 20px;
}

/* =================== Form Fields =================== */
.signup-container {
  text-align: left;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  font-size: 14px;
  color: #4A403A;
  display: block;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #2A2B2D;
}

.error {
  font-size: 13px;
  color: red;
}

/* =================== Buttons =================== */
button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #2A2B2D;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 10px;
  transition: 0.3s;
}

button[type="submit"]:hover {
  background-color: #6e3c2a;
  color: #e5ff00;
}


/* =================== Terms & Redirects =================== */
.signup-container p {
  font-size: 13px;
  color: #4A403A;
  margin-top: 15px;
}

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

.signup-container p a:hover {
  text-decoration: underline;
}

.login-link {
  font-size: 14px;
  margin-top: 10px;
  color: #4A403A;
  text-align: center;
}

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

.login-link a:hover {
  text-decoration: underline;
}


/* =================== Responsive Design =================== */
@media (max-width: 768px) {
  .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;
  }

  .modal-content {
    padding: 20px 15px;
    margin-top: 30px;
    border-radius: 10px;
  }

  .form-title {
    font-size: 22px;
  }

  .form-group input {
    font-size: 14px;
  }

  button[type="submit"],
  .social-btn {
    font-size: 15px;
  }

  .signup-container p,
  .login-link {
    font-size: 12px;
  }

  .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);
  }
  
}
