/* ── WC DPM Social Login & Registration ── */

.wcdpm-register-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0px 16px 60px;
    min-height: 60vh;
    background: #fff;
}

.wcdpm-register-card {
    width: 100%;
    max-width: 760px;
    background: #fff;
    padding: 0;
}

/* ── Heading ── */
.wcdpm-register-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-align: center !important;
    margin: 0 0 16px !important;
    line-height: 1.2 !important;
}

.wcdpm-register-subtitle {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin: 0 auto 30px;
    max-width: 560px;
    line-height: 1.6;
}

/* ── Social Buttons ── */
.wcdpm-social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.wcdpm-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid #dde1e6;
    border-radius: 6px;
    background: #f5f5f5;
    color: #333 !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.wcdpm-social-btn:hover {
    background: #ebebeb;
    border-color: #c5c8cc;
    color: #111 !important;
    text-decoration: none !important;
}

/* ── Divider ── */
.wcdpm-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 26px;
    color: #888;
    font-size: 13px;
}

.wcdpm-divider::before,
.wcdpm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dde1e6;
}

/* ── Notices ── */
.wcdpm-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.wcdpm-error {
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    color: #c0392b;
}

.wcdpm-success {
    background: #f0faf4;
    border: 1px solid #b2dfcc;
    color: #1d7a3b;
}

/* ── Form Layout ── */
.wcdpm-register-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wcdpm-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.wcdpm-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.wcdpm-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.wcdpm-form-group label .req {
    color: #e8351a;
    margin-left: 2px;
}

/* ── Inputs ── */
.wcdpm-register-form input[type="text"],
.wcdpm-register-form input[type="email"],
.wcdpm-register-form input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #dde1e6;
    border-radius: 6px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    outline: none;
}

.wcdpm-register-form input[type="text"]:focus,
.wcdpm-register-form input[type="email"]:focus,
.wcdpm-register-form input[type="password"]:focus {
    border-color: #e8351a;
    box-shadow: 0 0 0 3px rgba(232,53,26,0.12);
}

/* ── Password Wrap ── */
.wcdpm-pw-wrap {
    position: relative;
}

.wcdpm-pw-wrap input[type="password"],
.wcdpm-pw-wrap input[type="text"] {
    padding-right: 46px;
}

.wcdpm-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #888;
    line-height: 0;
    display: flex;
    align-items: center;
}

.wcdpm-eye:hover {
    color: #444;
}

/* ── Password Strength ── */
.wcdpm-pw-strength {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

#wcdpm-strength-label {
    font-weight: 600;
}

#wcdpm-strength-label.pw-very-weak { color: #e8351a; }
#wcdpm-strength-label.pw-weak      { color: #f39c12; }
#wcdpm-strength-label.pw-good      { color: #2ecc71; }
#wcdpm-strength-label.pw-strong    { color: #27ae60; }

/* ── Checkbox ── */
.wcdpm-checkbox-row {
    margin-bottom: 28px;
}

.wcdpm-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 0 !important;
    user-select: none;
}

.wcdpm-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wcdpm-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #e8351a;
    border-radius: 4px;
    background: #fff;
    transition: background 0.15s;
}

.wcdpm-checkbox-label input[type="checkbox"]:checked + .wcdpm-checkmark {
    background: #e8351a;
}

.wcdpm-checkbox-label input[type="checkbox"]:checked + .wcdpm-checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* ── Action Buttons ── */
.wcdpm-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 4px;
}

.wcdpm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

/* Back button — outline */
.wcdpm-btn-back {
    background: #fff;
    border-color: #e8351a;
    color: #e8351a !important;
}

.wcdpm-btn-back:hover {
    background: #fff5f3;
    color: #c0301a !important;
    text-decoration: none !important;
}

/* Create button — solid */
.wcdpm-btn-create {
    background: #e8351a;
    border-color: #e8351a;
    color: #fff !important;
}

.wcdpm-btn-create:hover {
    background: #c0301a;
    border-color: #c0301a;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .wcdpm-social-buttons {
        grid-template-columns: 1fr;
    }
    .wcdpm-row-half {
        grid-template-columns: 1fr;
    }
    .wcdpm-form-actions {
        grid-template-columns: 1fr;
    }
    .wcdpm-register-title {
        font-size: 24px !important;
    }
}
