/* =========================================================
   PTL MEMBER SIGN-IN / REGISTRATION
   Page-specific styles
========================================================= */

/* Main authentication page area */
.ptl-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    background-color: #B2DDED;
}

/* Authentication container */
.ptl-auth-container {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 50px 40px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
}

/* Forms wrapper */
.ptl-auth-forms {
    display: flex;
    align-items: center;
    width: 200%;
    height: 440px;
    transition: height 0.2s ease;
}

/* Individual form */
.ptl-auth-form {
    flex: 0 0 50%;
    width: 50%;
    padding: 35px;
    background: #ffffff;
    transition: margin-left 0.18s ease;
}

/* Login form */
.ptl-login-form {
    margin-left: 0;
}

/* Move login form when registration is active */
.ptl-auth-container.is-registration .ptl-login-form {
    margin-left: -50%;
    opacity: 0;
}

/* Registration form */
.ptl-register-form {
    opacity: 0;
}

.ptl-auth-container.is-registration .ptl-register-form {
    opacity: 1;
}

/* Taller registration form */
.ptl-auth-container.is-registration .ptl-auth-forms {
    height: 600px;
}


/* =========================================================
   HEADINGS
========================================================= */

.ptl-auth-title {
    position: relative;
    margin: 0;
    padding-bottom: 8px;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.3;
}

.ptl-auth-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    border-radius: 25px;
    background-color: #4070f4;
}


/* =========================================================
   INPUT FIELDS
========================================================= */

.ptl-auth-field {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 30px;
}

.ptl-auth-field input {
    width: 100%;
    height: 100%;
    padding: 0 35px;
    border: 0;
    border-bottom: 2px solid #ccc;
    border-top: 2px solid transparent;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.ptl-auth-field input:focus,
.ptl-auth-field input:valid {
    border-bottom-color: #4070f4;
}

/* Input icons */
.ptl-auth-field .ptl-auth-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #999;
    font-size: 23px;
    transition: color 0.2s ease;
}

.ptl-auth-field input:focus ~ .ptl-auth-icon,
.ptl-auth-field input:valid ~ .ptl-auth-icon {
    color: #4070f4;
}

/* Password visibility icon */
.ptl-auth-field .ptl-password-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    padding: 10px;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
}

.ptl-auth-field .ptl-password-toggle:hover {
    color: #4070f4;
}


/* =========================================================
   CHECKBOX / LINKS / TEXT
========================================================= */

.ptl-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.ptl-auth-checkbox {
    display: flex;
    align-items: center;
}

.ptl-auth-checkbox input {
    margin-right: 10px;
    accent-color: #4070f4;
}

.ptl-auth-text {
    color: #333;
    font-size: 14px;
}

.ptl-auth-link {
    color: #4070f4;
    text-decoration: none;
}

.ptl-auth-link:hover {
    text-decoration: underline;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.ptl-auth-button {
    width: 100%;
    margin-top: 35px;
}

.ptl-auth-button input {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 6px;
    background-color: #4070f4;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ptl-auth-button input:hover {
    background-color: #265df2;
}


/* =========================================================
   LOGIN / REGISTRATION SWITCH
========================================================= */

.ptl-auth-switch {
    margin-top: 30px;
    text-align: center;
}


/* =========================================================
   LOGIN MESSAGE
========================================================= */

#loginMessage {
    margin-top: 10px;
    color: #dc3545;
    text-align: center;
    font-size: 14px;
}


/* =========================================================
   BOOKING FORM
========================================================= */

.ptl-booking-container {
    width: 100%;
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

#bookingForm {
    padding: 40px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


/* Booking header */
.ptl-booking-header {
    margin-bottom: 35px;
    text-align: center;
}

.ptl-booking-header h2 {
    margin-bottom: 12px;
    font-size: 30px;
}

.ptl-booking-header p {
    max-width: 650px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
}


/* Booking sections */
.ptl-booking-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #ffffff;
}

.ptl-booking-section h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ptl-booking-section > p {
    margin-bottom: 22px;
    color: #666;
    font-size: 14px;
}


/* Booking fields */
.ptl-booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ptl-booking-field {
    display: flex;
    flex-direction: column;
}

.ptl-booking-field label,
.ptl-participant-field label {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.ptl-booking-field label span {
    color: #888;
    font-weight: normal;
}

.ptl-booking-field input,
.ptl-participant-field input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    outline: none;
    font-size: 15px;
}

.ptl-booking-field input:focus,
.ptl-participant-field input:focus {
    border-color: #4070f4;
}


/* =========================================================
   PARTICIPANTS
========================================================= */

.ptl-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.ptl-section-heading p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.ptl-add-participant-btn {
    flex-shrink: 0;
    padding: 9px 15px;
    border: 1px solid #4070f4;
    border-radius: 6px;
    background: #ffffff;
    color: #4070f4;
    font-size: 14px;
    cursor: pointer;
}

.ptl-add-participant-btn:hover {
    background: #4070f4;
    color: #ffffff;
}

.ptl-participant-row {
    display: grid;
    grid-template-columns: 40px 1fr 130px;
    align-items: end;
    gap: 15px;
    margin-bottom: 12px;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
    background: #fafafa;
}

.ptl-participant-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 7px;
    border-radius: 50%;
    background: #4070f4;
    color: #ffffff;
    font-weight: 600;
}

.ptl-participant-field {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   CALENDAR
========================================================= */

#bookingCalendar {
    max-width: 700px;
    margin: 25px auto 15px;
}

#bookingCalendar .fc {
    font-size: 14px;
}

#bookingCalendar .fc-toolbar-title {
    font-size: 20px;
}

#bookingCalendar .fc-button {
    border-radius: 5px;
}

#bookingCalendar .unavailable-day {
    background: #f2f2f2 !important;
    color: #aaa !important;
    cursor: not-allowed !important;
}

#bookingCalendar .selected-booking-date {
    background: #4070f4 !important;
    color: #ffffff !important;
}

.ptl-date-selection-message {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   BOOKING SUBMIT
========================================================= */

.ptl-booking-submit {
    margin-top: 30px;
    text-align: center;
}

.ptl-booking-submit-btn {
    width: 100%;
    max-width: 400px;
    height: 50px;
    border: 0;
    border-radius: 6px;
    background: #4070f4;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.ptl-booking-submit-btn:hover {
    background: #305dcc;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .ptl-auth-page {
        padding: 110px 15px 30px;
    }

    .ptl-auth-form {
        padding: 30px 25px;
    }

    #bookingForm {
        padding: 25px 18px;
    }

    .ptl-booking-section {
        padding: 18px;
    }

    .ptl-booking-grid {
        grid-template-columns: 1fr;
    }

    .ptl-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ptl-add-participant-btn {
        width: 100%;
    }

    .ptl-participant-row {
        grid-template-columns: 35px 1fr;
    }

    .ptl-participant-row .age-field {
        grid-column: 2;
    }
}

