* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Cormorant Garamond", serif;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: 40px;
}

/* HEADER */
.header {
    margin-bottom: 20px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 120px;
}

/* AUTH CONTAINER */
.auth-container {
    width: 350px;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 25px;
    color: #222;
}

/* INPUT FIELDS */
.auth-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}

.auth-container input:focus {
    border-color: darkgreen;
}

/* BUTTON */
.auth-container button {
    width: 100%;
    padding: 12px;
    background: black;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-container button:hover {
    background: #025117;
}

/* LINKS */
.auth-container a {
    color: green;
    text-decoration: none;
    font-weight: bold;
}

.auth-container a:hover {
    text-decoration: underline;
}

/* PASSWORD WRAPPER */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px;
}

#togglePassword {
    position: absolute;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    user-select: none;
}

/* TERMS SECTION */
.terms-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #016016;
    margin-bottom: 20px;
    text-align: left;
}

.terms-container input {
    width: auto;
    margin-top: 3px;
}

.terms-container a {
    color: #2e7d32;
    font-weight: 600;
}

.terms-container a:hover {
    text-decoration: underline;
}

/* GUEST LINK */
.guest-link {
    margin-top: 18px;
    text-align: center;
    display: block;
    color: #1a1a1a;
    font-size: 15px;
    text-decoration: none;
}

.guest-link:hover {
    color: green;
}

/* LOGIN / SIGNUP TEXT */
.auth-container p {
    margin-top: 18px;
    font-size: 14px;
    color: #036f20;
}

/* RESPONSIVE DESIGN */
@media (max-width: 480px) {
    body {
        padding-top: 20px;
    }

    .auth-container {
        padding: 20px;
        border-radius: 8px;
    }

    .logo img {
        width: 90px;
    }

    .auth-container h2 {
        font-size: 20px;
    }

    .auth-container input,
    .auth-container button {
        font-size: 14px;
        padding: 10px;
    }
}
/* Password fields */
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.password-wrapper input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.password-wrapper input:focus {
    outline: none;
    border-color: #0f8a7b;
    box-shadow: 0 0 0 3px rgba(15, 138, 123, 0.15);
}

.password-wrapper span {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    color: #666;
    transition: color 0.3s ease;
}

.password-wrapper span:hover {
    color: #025427;
}
/* ==========================================
   PHONE INPUT
========================================== */

.phone-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
}

.phone-wrapper select,
.phone-wrapper input {
    height: 50px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    font-family: 'Comfortaa', sans-serif;
    font-size: 15px;
    color: #333;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Country code dropdown */
.phone-wrapper select {
    width: 110px;
    padding: 0 12px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E")
        no-repeat right 12px center;
    background-color: #fff;
    padding-right: 35px;
}

/* Phone number input */
.phone-wrapper input {
    flex: 1;
    padding: 0 16px;
}

/* Focus effect */
.phone-wrapper select:focus,
.phone-wrapper input:focus {
    outline: none;
    border-color: #0f8a7b;
    box-shadow: 0 0 0 4px rgba(15, 138, 123, 0.12);
}

/* Placeholder */
.phone-wrapper input::placeholder {
    color: #999;
}

/* Hover */
.phone-wrapper select:hover,
.phone-wrapper input:hover {
    border-color: #bdbdbd;
}
/* Signup page specific - tighter spacing */
#signupForm input,
#signupForm .phone-wrapper,
#signupForm .password-wrapper {
    margin-bottom: 10px;  /* reduce from 18px */
}

#signupForm .terms-container {
    margin-bottom: 12px;
}

/* Reduce auth-container padding on signup page */
body.signup-page .auth-container {
    padding: 25px 35px;
}
/* ==========================================
   SIGNUP MOBILE FIXES
========================================== */
@media (max-width: 480px) {

  body.signup-page {
    padding-top: 15px;
    padding-bottom: 30px;
  }

  body.signup-page .auth-container {
    width: 95%;
    padding: 20px 18px;
    border-radius: 10px;
  }

  #signupForm input,
  #signupForm .phone-wrapper,
  #signupForm .password-wrapper {
    margin-bottom: 8px;
  }

  /* Phone wrapper stacks on very small screens */
  .phone-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .phone-wrapper select {
    width: 100%;
  }

  .phone-wrapper input {
    width: 100%;
  }

  .terms-container {
    font-size: 12px;
  }

  #signupForm button {
    font-size: 15px;
    padding: 11px;
  }
}