/*-------------------------
  :root VARIABLES
-------------------------*/
:root {
    --login-primary-color: #6d59e2;
    --login-secondary-color: #f5f7fa;
    --login-text-color: #333;
    --login-light-text-color: #777;
    --login-border-color: #e0e0e0;
    --login-white-color: #fff;
    --login-body-bg: #f8f9fd;
    --login-border-radius: 8px;
    --login-box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

/*-------------------------
  MAIN CONTAINER & LAYOUT
-------------------------*/
/* Hides default WooCommerce page title */
.woocommerce-account .entry-title {
    display: none;
}

.wc-custom-account-container {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    background: var(--login-white-color);
    width: 100%;
    max-width: 960px;
    margin: 40px auto;
    border-radius: var(--login-border-radius);
    box-shadow: var(--login-box-shadow);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/*-------------------------
  FORM CONTAINER (LEFT SIDE)
-------------------------*/
.form-container {
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.back-to-shop {
    margin-bottom: 20px;
}
.back-to-shop a {
    text-decoration: none;
    color: var(--login-light-text-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}
.back-to-shop .arrow {
    font-size: 1.2em;
    margin-right: 8px;
}

.form-wrapper .form-header {
    text-align: center;
    margin-bottom: 30px;
}
.form-wrapper .form-header h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--login-text-color);
}
.form-wrapper .form-header p {
    color: var(--login-light-text-color);
    margin: 0;
}

/* Form Styling */
.woocommerce-form label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}
.woocommerce-form .input-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--login-border-color);
    border-radius: var(--login-border-radius);
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.woocommerce-form .input-text:focus {
    border-color: var(--login-primary-color);
    outline: none;
}

.woocommerce-form .form-row {
    margin-bottom: 20px;
}

.woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
}
.woocommerce-form-login__rememberme input {
    margin-right: 8px;
}
.woocommerce-form-login__rememberme span {
    font-size: 0.9em;
}

.woocommerce-form .button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--login-border-radius);
    background-color: var(--login-primary-color);
    color: var(--login-white-color);
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.woocommerce-form .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 89, 226, 0.4);
}

.woocommerce-LostPassword a {
    color: var(--login-primary-color);
    text-decoration: none;
    font-size: 0.9em;
}
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.form-footer .woocommerce-form-row {
    flex-grow: 1;
    margin-bottom: 0;
}

.toggle-form {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95em;
    color: var(--login-light-text-color);
}
.toggle-form a {
    color: var(--login-primary-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/*-------------------------
  DECORATIVE PANEL (RIGHT SIDE)
-------------------------*/
.panel-container {
    display: none; /* Hidden on mobile by default */
    background: linear-gradient(45deg, #4332c9, #7362ff);
    padding: 40px;
    color: var(--login-white-color);
    position: relative;
    overflow: hidden;
}

.panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}
.panel-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.site-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: var(--login-white-color); /* Adds the white background */
    color: var(--login-text-color);       /* Changes text color to be readable */
    padding: 30px;                        /* Adds space inside the card */
    border-radius: var(--login-border-radius); /* Makes corners rounded */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);   /* Adds a subtle shadow */
    max-width: 320px;                     /* Sets a max-width for the card */
}

.site-logo {
    max-width: 100px; /* Adjusts the size of the new logo */
    height: auto;
    margin-bottom: 10px;
}

.site-summary h3 {
    font-size: 1.6em;
    margin: 0;
    font-weight: 600;
    color: var(--login-text-color); /* Ensures heading is dark */
}

.site-summary p {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    color: var(--login-light-text-color); /* Sets paragraph text to grey */
}

/*-------------------------
  RESPONSIVE DESIGN
-------------------------*/
@media (min-width: 768px) {
    .form-container {
        padding: 50px 70px;
    }
}

@media (min-width: 992px) {
    .wc-custom-account-container {
        grid-template-columns: 1fr 1fr; /* Two columns for desktop */
    }
    .panel-container {
        display: block; /* Show the decorative panel */
    }
}