/* LSP Private Store — Login & Request Access pages */

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

body.lsp-ps-login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a2e;
}

.lsp-ps-container {
    width: 100%;
    max-width: 400px;
    margin: 20px;
    padding: 40px 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.lsp-ps-logo {
    text-align: center;
    margin-bottom: 32px;
}

.lsp-ps-logo img {
    max-width: 200px;
    max-height: 80px;
    height: auto;
}

.lsp-ps-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 24px;
    color: #1a1a2e;
}

.lsp-ps-message {
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #e8f4fd;
    border-left: 3px solid #2196f3;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a2e;
}

.lsp-ps-errors {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    border-radius: 4px;
}

.lsp-ps-errors p {
    margin: 0;
    padding: 2px 0;
    font-size: 14px;
    color: #dc2626;
}

.lsp-ps-success {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
    border-radius: 4px;
}

.lsp-ps-success p {
    margin: 0;
    font-size: 14px;
    color: #16a34a;
}

.lsp-ps-field {
    margin-bottom: 20px;
}

.lsp-ps-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.lsp-ps-field input[type="email"],
.lsp-ps-field input[type="password"],
.lsp-ps-field input[type="text"],
.lsp-ps-field input[type="tel"],
.lsp-ps-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a2e;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lsp-ps-field input:focus,
.lsp-ps-field textarea:focus,
.lsp-ps-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Green glow on valid filled fields */
.lsp-ps-field input:not(:placeholder-shown):not(:focus):valid,
.lsp-ps-field textarea:not(:placeholder-shown):not(:focus):valid,
.lsp-ps-field select:not(:focus):valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.10);
}

.lsp-ps-field textarea {
    resize: vertical;
    min-height: 100px;
}

.lsp-ps-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.lsp-ps-btn:hover {
    background: #1d4ed8;
}

.lsp-ps-btn:active {
    background: #1e40af;
}

.lsp-ps-links {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lsp-ps-links a {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

.lsp-ps-links a:hover {
    text-decoration: underline;
}

/* Wider container for request access form */
.lsp-ps-container--wide {
    max-width: 520px;
}

/* Inline row for paired fields (first+last name, postcode+city) */
.lsp-ps-row {
    display: flex;
    gap: 12px;
}

.lsp-ps-field--half {
    flex: 1;
    min-width: 0;
}

/* Required asterisk */
.lsp-ps-req {
    color: #ef4444;
    font-weight: 700;
}

/* Checkbox field (privacy policy) */
.lsp-ps-checkbox {
    margin-top: 4px;
}

.lsp-ps-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
    cursor: pointer;
}

.lsp-ps-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.lsp-ps-checkbox a {
    color: #2563eb;
    text-decoration: underline;
}

/* Select dropdown */
.lsp-ps-field select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a2e;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.lsp-ps-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media (max-width: 480px) {
    .lsp-ps-container {
        margin: 12px;
        padding: 28px 20px;
    }

    .lsp-ps-row {
        flex-direction: column;
        gap: 0;
    }
}
