/**
 * @author    MEG Venture <info@megventure.com>
 * @copyright 2007-2026 MEG Venture
 * @license   All rights reserved
 */

.pwg-panel {
    z-index: 10000;
    min-width: 230px;
    max-width: 290px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12.5px;
    color: #333333;
}

.pwg-panel-title {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 12.5px;
    color: #333333;
}

.pwg-meter {
    height: 6px;
    border-radius: 3px;
    background: #e9e9e9;
    overflow: hidden;
    margin-bottom: 4px;
}

.pwg-meter-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: #e74c3c;
    transition: width .2s ease, background-color .2s ease;
}

.pwg-meter-bar.pwg-strength-weak {
    background: #e74c3c;
}

.pwg-meter-bar.pwg-strength-fair {
    background: #f39c12;
}

.pwg-meter-bar.pwg-strength-good {
    background: #2ecc71;
}

.pwg-meter-bar.pwg-strength-strong {
    background: #27ae60;
}

.pwg-meter-label {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #888888;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.pwg-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pwg-item {
    position: relative;
    padding: 3px 0 3px 22px;
    line-height: 18px;
}

.pwg-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.pwg-item.pwg-invalid {
    color: #c0392b;
}

.pwg-item.pwg-invalid::before {
    background-image: url("../img/invalid.png");
}

.pwg-item.pwg-valid {
    color: #219150;
}

.pwg-item.pwg-valid::before {
    background-image: url("../img/valid.png");
}

.pwg-eye {
    position: absolute;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #888888;
    z-index: 10000;
    user-select: none;
}

.pwg-error {
    display: none;
    z-index: 10001;
    padding: 6px 12px;
    background: #c0392b;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

/* Live preview panel on the module configuration page */
.pwg-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
    margin-top: 6px;
}

.pwg-preview input {
    flex: 1;
}

/* Front-office landing pages: account activation, password error, etc. */
.pwg-landing {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.pwg-landing-card {
    max-width: 500px;
    width: 100%;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .1);
    text-align: center;
}

.pwg-landing-card-warning {
    background: #fff8e6;
}

.pwg-landing-logo {
    margin-bottom: 20px;
}

.pwg-landing-card h1 {
    margin-bottom: 15px;
    color: #333333;
}

.pwg-landing-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

.pwg-landing-note {
    margin-top: 15px;
    font-size: 14px !important;
    color: #888888 !important;
}

.pwg-landing-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #27ae60;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
