/* ===========================
   GLOBAL RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* ===========================
   PAGE LAYOUT
   Centers the auth card vertically and horizontally
   =========================== */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: white;
}

/* ===========================
   AUTH CARD CONTAINER
   Main wrapper for login/register forms
   =========================== */
.auth-card {
    width: 420px;
    background-color: whitesmoke;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: black;
    border-radius: 10px;
    padding: 30px 40px;
}

/* Remove default fieldset styling */
.auth-card fieldset {
    border: none;
}

/* ===========================
   CARD TITLE
   =========================== */
.auth-card h1 {
    font-size: 36px;
    text-align: center;
    border: none;
}

/* ===========================
   FORM FIELD WRAPPER
   Used for positioning icons and action buttons
   =========================== */
.auth-card .form-field {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

/* ===========================
   INPUT FIELDS
   =========================== */
.auth-card input {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 40px;
    font-size: 16px;
    color: black;
    padding-left: 48px;
    padding-right: 48px;
}

/* Input placeholder styling */
.auth-card input::placeholder {
    color: black;
}

/* ===========================
   INPUT ICONS
   =========================== */
.auth-card i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* ===========================
   INLINE ACTION BUTTON (e.g. toggle password)
   =========================== */
.form-field .btn {
    position: absolute;
    right: 40px;
    top: 50%;
    background: transparent;
    border: none;
    padding: 0;
    color: black;
    cursor: pointer;
}

/* Prevent icon from inheriting left positioning */
.form-field .btn i {
    left: auto;
}

/* ===========================
   PRIMARY ACTION BUTTON
   Submit / Sign In / Register
   =========================== */
.auth-card #sign-btn {
    width: 100%;
    height: 45px;
    background-color: white;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    border: none;
}

/* ===========================
   REGISTER / LOGIN LINK
   =========================== */
.auth-card .register-link {
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 15px;
}

/* Link styling */
.register-link a {
    color: black;
    text-decoration: none;
    font-weight: 600;
}

/* Hover feedback for links */
.register-link a:hover {
    text-decoration: underline;
}
