/* ============================================
   AUTH PAGES - POKEASY
   ============================================ */

.pk-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--pk-space-8) var(--pk-space-4);
    background: linear-gradient(135deg, var(--pk-gray-100) 0%, var(--pk-gray-50) 100%);
}

.pk-auth__container {
    width: 100%;
    max-width: 420px;
    background: var(--pk-white);
    border-radius: var(--pk-radius-2xl);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: var(--pk-space-8);
}

/* Logo */
.pk-auth__logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--pk-space-6);
}

.pk-auth__logo img {
    height: 48px;
    width: auto;
}

/* Tabs */
.pk-auth__tabs {
    display: flex;
    background: var(--pk-gray-100);
    border-radius: var(--pk-radius-lg);
    padding: 4px;
    margin-bottom: var(--pk-space-6);
}

.pk-auth__tab {
    flex: 1;
    padding: var(--pk-space-3);
    background: none;
    border: none;
    border-radius: var(--pk-radius-md);
    font-size: var(--pk-font-size-sm);
    font-weight: 600;
    color: var(--pk-gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pk-auth__tab:hover {
    color: var(--pk-gray-700);
}

.pk-auth__tab--active {
    background: var(--pk-white);
    color: var(--pk-gray-900);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Panels */
.pk-auth__panel {
    display: none;
}

.pk-auth__panel--active {
    display: block;
}

/* Form */
.pk-auth__form {
    display: flex;
    flex-direction: column;
    gap: var(--pk-space-4);
}

.pk-auth__field {
    display: flex;
    flex-direction: column;
    gap: var(--pk-space-2);
}

.pk-auth__field label {
    font-size: var(--pk-font-size-sm);
    font-weight: 500;
    color: var(--pk-gray-700);
}

.pk-auth__field label .required {
    color: #ef4444;
}

.pk-auth__input {
    width: 100%;
    padding: var(--pk-space-3) var(--pk-space-4);
    border: 1px solid var(--pk-gray-300);
    border-radius: var(--pk-radius-lg);
    font-size: var(--pk-font-size-base);
    transition: all 0.2s ease;
}

.pk-auth__input:focus {
    outline: none;
    border-color: var(--pk-yellow);
    box-shadow: 0 0 0 3px rgba(255, 216, 20, 0.1);
}

.pk-auth__input::placeholder {
    color: var(--pk-gray-400);
}

/* Password Toggle */
.pk-auth__password-wrapper {
    position: relative;
}

.pk-auth__password-wrapper .pk-auth__input {
    padding-right: 48px;
}

.pk-auth__password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--pk-gray-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.pk-auth__password-toggle:hover {
    color: var(--pk-gray-600);
}

/* Options */
.pk-auth__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--pk-font-size-sm);
}

.pk-auth__remember {
    display: flex;
    align-items: center;
    gap: var(--pk-space-2);
    color: var(--pk-gray-600);
    cursor: pointer;
}

.pk-auth__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--pk-yellow);
}

.pk-auth__forgot {
    color: var(--pk-gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pk-auth__forgot:hover {
    color: var(--pk-yellow);
}

/* Info */
.pk-auth__info {
    font-size: var(--pk-font-size-sm);
    color: var(--pk-gray-500);
    background: var(--pk-gray-50);
    padding: var(--pk-space-3);
    border-radius: var(--pk-radius-md);
    text-align: center;
}

/* Submit */
.pk-auth__submit {
    width: 100%;
    padding: var(--pk-space-4);
    background: var(--pk-yellow);
    border: none;
    border-radius: var(--pk-radius-lg);
    font-size: var(--pk-font-size-base);
    font-weight: 600;
    color: var(--pk-black);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: var(--pk-space-2);
}

.pk-auth__submit:hover {
    background: #e6c212;
    transform: translateY(-1px);
}

.pk-auth__submit:active {
    transform: translateY(0);
}

/* Footer */
.pk-auth__footer {
    margin-top: var(--pk-space-6);
    padding-top: var(--pk-space-6);
    border-top: 1px solid var(--pk-gray-200);
    text-align: center;
}

.pk-auth__footer a {
    display: inline-flex;
    align-items: center;
    gap: var(--pk-space-2);
    color: var(--pk-gray-500);
    text-decoration: none;
    font-size: var(--pk-font-size-sm);
    transition: color 0.2s ease;
}

.pk-auth__footer a:hover {
    color: var(--pk-gray-700);
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */

.woocommerce-account:not(.logged-in) .pk-account {
    display: none;
}

.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
    max-width: 420px;
    margin: 0 auto var(--pk-space-4);
}

.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    padding: var(--pk-space-4);
    border-radius: var(--pk-radius-lg);
    margin-bottom: var(--pk-space-4);
    list-style: none;
}

.woocommerce-account .woocommerce-error {
    background: #fee2e2;
    color: #991b1b;
    border: none;
}

.woocommerce-account .woocommerce-message {
    background: #d1fae5;
    color: #065f46;
    border: none;
}

/* Hide default WooCommerce form */
.woocommerce-account:not(.logged-in) .woocommerce > .u-columns {
    display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .pk-auth__container {
        padding: var(--pk-space-6);
    }
    
    .pk-auth__options {
        flex-direction: column;
        gap: var(--pk-space-3);
        align-items: flex-start;
    }
}
