/*
 * Front‑end styles for Orphic WP Registration.
 *
 * This stylesheet modernizes the plugin’s registration, login and account
 * interfaces with a clean card layout, generous spacing, soft shadows
 * and rounded controls. All colours, fonts and radii can be customised
 * via the plugin settings. Additional customisation is injected via
 * wp_add_inline_style in the Orphic_Shortcodes class.
 */

.orphic-form {
    background-color: var(--orphic-background-color, #ffffff);
    color: var(--orphic-text-color, #333333);
    border-radius: var(--orphic-border-radius, 6px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 0 auto 30px;
    max-width: var(--orphic-max-width, 480px);
    font-family: var(--orphic-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.orphic-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: var(--orphic-text-color, #333333);
    text-align: center;
}

.orphic-form .orphic-form-group {
    margin-bottom: 20px;
}

.orphic-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--orphic-text-color, #333333);
}

.orphic-form input[type="text"],
.orphic-form input[type="email"],
.orphic-form input[type="password"],
.orphic-form input[type="number"],
.orphic-form select,
.orphic-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--orphic-border-radius, 6px);
    background-color: #f9fafa;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.orphic-form input:focus,
.orphic-form select:focus,
.orphic-form textarea:focus {
    border-color: var(--orphic-primary-color, #0073aa);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.25);
    outline: none;
    background-color: #ffffff;
}

.orphic-form .orphic-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 0;
    background-color: var(--orphic-primary-color, #0073aa);
    color: #ffffff;
    border: none;
    border-radius: var(--orphic-border-radius, 6px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.orphic-form .orphic-btn:hover,
.orphic-form .orphic-btn:focus {
    background-color: var(--orphic-primary-dark, #006799);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    outline: none;
}

.orphic-form .orphic-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--orphic-primary-color, #0073aa);
    text-decoration: none;
    transition: color 0.2s ease;
}

.orphic-form .orphic-link:hover {
    color: var(--orphic-primary-dark, #006799);
    text-decoration: underline;
}

/* Password visibility toggle styles */
.orphic-password-wrapper {
    position: relative;
}
.orphic-password-wrapper input {
    padding-right: 40px;
}
.orphic-toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #7a7a7a;
    transition: color 0.2s ease;
}
.orphic-toggle-password:hover {
    color: var(--orphic-primary-color, #0073aa);
}
.orphic-toggle-password .dashicons {
    font-size: 20px;
    line-height: 1;
}

/* Password hint text */
.orphic-password-hints {
    font-size: 12px;
    color: #6c757d;
    margin-top: -10px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Messages */
.orphic-message {
    padding: 12px;
    border-radius: var(--orphic-border-radius, 6px);
    margin-bottom: 20px;
    font-size: 14px;
}

.orphic-message.orphic-success {
    background-color: #d5f5e3;
    color: #155724;
    border: 1px solid #b1e2c1;
}

.orphic-message.orphic-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.orphic-message.orphic-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}