/* ================================
   Auth Page - Professional Login/Register
 ================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ================================
   Reset & Base
 ================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
html,
button,
input,
select,
textarea,
label,
.woocommerce,
.woocommerce * {
    font-family: 'Inter', sans-serif !important;
}

body {
    background: linear-gradient(180deg, #f8f8f9 0%, #f1f1f3 100%);
    min-height: 100vh;
}

/* ================================
   Page Container
 ================================ */

.jpt-auth-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* ================================
   Header
 ================================ */

.jpt-auth-header {
    text-align: center;
    margin-bottom: 44px;
}

.jpt-auth-header h1 {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -.5px;
}

.jpt-auth-header p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* ================================
   Layout - 50/50 Split
 ================================ */

.jpt-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    width: 100%;
}

.jpt-auth-col {
    width: 100%;
    min-width: 0;
}

/* ================================
   Card
 ================================ */

.jpt-auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 34px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 8px 30px rgba(0, 0, 0, 0.06);
    width: 100%;
    min-width: 0;
}

.jpt-auth-title {
    margin: 0 0 26px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jpt-auth-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 26px;
    border-radius: 10px;
    background: #c99a2e;
    flex-shrink: 0;
}

/* ================================
   Form Elements
 ================================ */

.jpt-form-group,
.woocommerce-form-row {
    margin-bottom: 18px;
}

.jpt-form-group label,
.woocommerce-form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    letter-spacing: .2px;
}

.jpt-form-group .required {
    color: #dc2626;
    font-weight: 700;
    margin-left: 1px;
}

.jpt-form-group input[type="text"],
.jpt-form-group input[type="email"],
.jpt-form-group input[type="password"],
.jpt-form-group input[type="search"],
.jpt-form-group input[type="tel"],
.jpt-form-group input[type="url"] {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    min-width: 0;
}

.jpt-form-group input::placeholder,
.jpt-form-group textarea::placeholder {
    color: #9ca3af;
}

.jpt-form-group input:focus,
.jpt-form-group select:focus,
.jpt-form-group textarea:focus {
    outline: none;
    border-color: #c99a2e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.10);
}

/* ================================
   WooCommerce Form Overrides
 ================================ */

.woocommerce-Input,
.input-text {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    min-width: 0;
    margin: 0;
    line-height: 1.5;
}

.woocommerce-Input:focus,
.input-text:focus {
    outline: none;
    border-color: #c99a2e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.10);
}

/* Password input wrapper */
.password-input {
    display: block;
    width: 100%;
    position: relative;
}

.password-input .woocommerce-Input {
    width: 100%;
    padding-right: 50px;
}

/* ================================
   Form Actions Row
 ================================ */

.jpt-form-row,
.form-row,
p.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    width: 100%;
}

/* Remember Me */
.woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    order: 0;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #c99a2e;
    cursor: pointer;
    flex-shrink: 0;
}

/* Lost Password */
.woocommerce-LostPassword,
.lost_password {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 14px;
    color: #6b7280;
    text-align: left;
}

.woocommerce-LostPassword a,
.lost_password a {
    color: #c99a2e;
    font-weight: 700;
    text-decoration: none;
}

.woocommerce-LostPassword a:hover,
.lost_password a:hover {
    color: #9c7319;
    text-decoration: underline;
}

/* ================================
   Buttons
 ================================ */

.woocommerce-button,
.woocommerce-Button,
button[type="submit"],
.wp-element-button,
.submit {
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    border: none;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .2px;
    line-height: 1.4;
    min-width: 0;
}

.woocommerce-form-login__submit,
#loginform .woocommerce-button,
#loginform .woocommerce-Button,
.woocommerce-form-login__submit[name="login"] {
    background: #111827;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.woocommerce-form-login__submit:hover,
#loginform .woocommerce-button:hover,
#loginform .woocommerce-Button:hover,
.woocommerce-form-login__submit[name="login"]:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.30);
}

.woocommerce-form-register__submit,
#registerform .woocommerce-Button,
#registerform .woocommerce-button,
.woocommerce-form-register__submit[name="register"] {
    background: #c99a2e;
    color: #fff;
    box-shadow: 0 4px 14px rgba(201, 154, 46, 0.30);
}

.woocommerce-form-register__submit:hover,
#registerform .woocommerce-Button:hover,
#registerform .woocommerce-button:hover,
.woocommerce-form-register__submit[name="register"]:hover {
    background: #a37d1b;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 154, 46, 0.40);
}

/* ================================
   Info Message
 ================================ */

.woocommerce-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
    border: none !important;
    line-height: 1.5;
}

/* ================================
   Hidden inputs / hiddens
 ================================ */

input[type="hidden"] {
    display: none;
}

/* ================================
   Required Asterisk
 ================================ */

.required {
    color: #dc2626;
    font-weight: 700;
}

/* ================================
   Mobile
 ================================ */

@media (max-width: 768px) {

    .jpt-auth-wrap {
        padding: 40px 18px 60px;
    }

    .jpt-auth-header {
        margin-bottom: 32px;
    }

    .jpt-auth-header h1 {
        font-size: 26px;
    }

    .jpt-auth-header p {
        font-size: 14px;
    }

    .jpt-auth-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .jpt-auth-col {
        width: 100%;
    }

    .jpt-auth-card {
        padding: 22px;
    }

    .jpt-auth-title {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .jpt-form-group,
    .woocommerce-form-row {
        margin-bottom: 14px;
    }

    .jpt-form-row,
    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        text-align: center;
    }

    .woocommerce-button,
    .woocommerce-Button,
    button[type="submit"] {
        width: 100%;
        justify-content: center;
    }

    .woocommerce-form-login__rememberme {
        justify-content: center;
        align-self: center;
        order: 0;
        width: 100%;
    }

    .lost_password,
    .woocommerce-LostPassword {
        text-align: center;
        order: 1;
    }
}

@media (max-width: 480px) {
    .jpt-auth-wrap {
        padding: 32px 14px 48px;
    }

    .jpt-auth-card {
        padding: 18px;
        border-radius: 16px;
    }

    .jpt-form-group input[type="text"],
    .jpt-form-group input[type="email"],
    .jpt-form-group input[type="password"],
    .woocommerce-Input,
    .input-text {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .jpt-form-group input:focus,
    .woocommerce-Input:focus,
    .input-text:focus {
        box-shadow: 0 0 0 2px rgba(201, 154, 46, 0.12);
    }
}
