/* Import Unified Color Palette */
@import url('colors.css');

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

/* ================================= */
/* Body Layout                       */
/* ================================= */
body {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  color: var(--greenNormal);
  margin: 0;
}

/* ================================= */
/* Container Card                    */
/* ================================= */
.container {
  background-color: #fff;
  width: 300px;
  height: auto;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 1px 1px 5px 5px rgb(180, 170, 170);
}

/* ================================= */
/* Header                            */
/* ================================= */
header {
  display: flex;
  height: 50px;
  border-radius: 5px;
}

header img {
  display: flex;
  height: 100%;
}

/* ================================= */
/* Forms                             */
/* ================================= */
.form {
  display: none;             /* hidden by default */
  width: 100%;
  height: 100%;
  flex-direction: column;
  gap: 30px;
}

.active {
  display: flex;             /* show active form */
}

/* ================================= */
/* Input Fields                      */
/* ================================= */
.in {
  background-color: #f1fcea;
  border-radius: 5px;
  border: none;
  height: 40px;
  width: 100%;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  padding-left: 10px;
  transition: all 0.3s ease;
  outline: none;
}

/* Hover and focus effects */
.in:hover {
  box-shadow: 0 0 3px #4CAF50;
}

.in:focus {
  box-shadow: 0 0 8px #4CAF50;
}

/* Specific inputs */
#username,
#password,
#email {
  background-color: #f1fcea;
}

/* Hidden input */
#hidd {
  visibility: hidden;
}

/* Placeholder styling */
.form input::placeholder {
  font-family: "Poppins", sans-serif;
  padding-left: 5px;
  font-size: 16px;
}

/* ================================= */
/* Section Wrapper                   */
/* ================================= */
section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin-right: 50px;
}

/* ================================= */
/* Buttons (Unified Style)           */
/* ================================= */
.btn-custom {
  background-color: var(--greenNormal);
  color: white;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  width: 100%;
  display: inline-block;
}

/* Hover */
.btn-custom:hover {
  filter: brightness(115%);
}

/* Active/Pressed */
.btn-custom:active {
  filter: brightness(100%);
}

/* Remove focus glow */
.btn-custom:focus {
  outline: none;
  filter: brightness(100%);
}

/* ================================= */
/* Remember & Forgot Section         */
/* ================================= */
.remember-and-forget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Left side (checkbox + text) */
.remember-and-forget .left {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Custom checkbox */
.remember-and-forget input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 2px solid var(--greenNormal);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Checkmark (hidden by default) */
.remember-and-forget input[type="checkbox"]::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  top: 1px;
  left: 5px;
  transform: scale(0) rotate(45deg);
  opacity: 0;
  transition: all 0.3s ease;
}

/* Checked state */
.remember-and-forget input[type="checkbox"]:checked {
  background-color: var(--greenNormal);
}

.remember-and-forget input[type="checkbox"]:checked::after {
  transform: scale(1) rotate(45deg);
  opacity: 1;
}

/* ================================= */
/* Divider (OR line)                 */
/* ================================= */
.orr {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 5px;
}

hr {
  flex: 1;
  background-color: var(--greenNormal);
  height: 1px;
}

/* ================================= */
/* Links                             */
/* ================================= */
.remember-and-forget a {
  text-decoration: none;
  color: var(--greenNormal);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.remember-and-forget a:hover {
  border-bottom: 1px solid var(--greenNormalHover);
}

/* ================================= */
/* Error Message                     */
/* ================================= */
.erorr {
  display: flex;
  align-items: center;
  height: 50px;
}

p {
  font-size: 14px;
  color: red;
}
