/* ========================================= */
/* ACCOUNT PAGE LAYOUT (Wrapper & Container) */
/* ========================================= */

.pt-account-page-wrapper {
    background-color: #fff; 
    min-height: 80vh; 
    
    /* Layout: Flexbox forces centering */
    display: flex;
    align-items: flex-start; /* Top aligned (vertical) */
    justify-content: center; /* Center aligned (horizontal) */
    
    /* FORCE FULL WIDTH (Fixes the "Left Alignment" issue) */
    width: 100%;       
    flex: 1 0 100%;    /* Grow, Don't Shrink, Force 100% Basis */
    margin: 0 auto;    /* Backup centering */
    
    /* GAP CONTROL (Desktop): Distance from header */
    padding-top: 40px; 
    
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.pt-container {
    width: 100%;
    max-width: 650px; /* Wide Box */
    margin: 0 auto;   
}

/* ========================================= */
/* CUSTOM LOGIN & REGISTER BOX STYLES        */
/* ========================================= */

.pt-custom-login-wrapper,
.pt-custom-register-wrapper {
    max-width: 100%; 
    margin: 0 auto;
    background: #f9f9f9; 
    padding: 80px 60px; /* Large internal padding (Desktop) */
    text-align: center;
    border-radius: 2px; 
}

/* Headings */
.pt-custom-login-wrapper h2,
.pt-custom-register-wrapper h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 35px;
    color: #000;
    text-transform: capitalize; 
    border: none;
    padding: 0;
}

/* ========================================= */
/* INPUT FIELDS & ROWS (Fixed Width)         */
/* ========================================= */

/* 1. The Container Row */
.pt-form-row {
    margin-bottom: 25px;
    width: 100%; /* Force the row to fill the container */
    display: block;
}

/* 2. Input Fields */
.pt-input {
    width: 100%;                /* Fill the row */
    max-width: 100% !important; /* FORCE override of any theme limits */
    min-width: 100%;            /* Prevent squashing */
    
    padding: 18px; 
    margin-bottom: 0; 
    border: 1px solid #e5e5e5; /* Default soft grey border */
    background: #fff;
    font-size: 16px;
    color: #333;
    
    /* Crucial for width calculations */
    box-sizing: border-box; 
    
    outline: none;
    transition: border 0.1s ease;
}

/* THE THICK BLACK BORDER ON CLICK/FOCUS */
.pt-input:focus {
    border: 2px solid #000;
    padding: 17px; /* Adjust padding slightly to prevent layout shift from thicker border */
}

/* Optional: Style invalid fields slightly differently if you want */
.pt-input:invalid:focus {
    border-color: #000; /* Keep it black on focus even if invalid, keeps it clean */
}

/* Links (Forgot Password) */
.pt-forgot-row {
    text-align: left;
    margin-top: -10px;
    margin-bottom: 30px;
}
.pt-forgot-row a {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
    font-weight: 600;
}
.pt-forgot-row a:hover {
    color: #000;
}

/* BUTTON STYLES */
.pt-login-button {
    width: 100%;
    background-color: #000;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    padding: 20px; 
    border: none;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 1px;
    transition: background 0.3s;
}
.pt-login-button:hover {
    background-color: #333;
    color: #fff;
}

/* Bottom Links (Sign Up) */
.pt-signup-row {
    margin-top: 25px;
    font-size: 15px;
}
.pt-signup-row a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

/* ========================================= */
/* ERROR MESSAGE STYLING (WooCommerce Notices) */
/* ========================================= */

.woocommerce-error {
    background-color: #fff4f4; 
    border: 1px solid #e0b4b4; 
    color: #333; 
    
    padding: 15px 20px;
    margin: 0 auto 30px auto; 
    width: 100%;
    max-width: 100%; 
    
    list-style: none !important; 
    border-radius: 2px;
    box-sizing: border-box;
    
    font-size: 14px;
    line-height: 1.5;
    text-align: left; 
}

.woocommerce-error li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.woocommerce-error li::before {
    display: none !important;
}

.woocommerce-error strong {
    font-weight: 800;
    margin-right: 5px;
}

/* ========================================= */
/* 📱 MOBILE RESPONSIVE FIXES (UPDATED)      */
/* ========================================= */

@media only screen and (max-width: 600px) {
    
    /* 1. REMOVED TOP/BOTTOM PADDING on Wrapper */
    .pt-account-page-wrapper {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        
        /* Keep slight side padding so content doesn't touch phone edges */
        padding-left: 10px;
        padding-right: 10px;
    }

    /* 2. Reduced Box Padding to prevent squashing */
    .pt-custom-login-wrapper,
    .pt-custom-register-wrapper {
        padding: 40px 20px; 
        width: 100%;
    }

    /* 3. Smaller Heading Font */
    .pt-custom-login-wrapper h2, 
    .pt-custom-register-wrapper h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
}