/**
 * Platty Login Tools - Frontend Styles
 */

 .pointer {
    cursor: pointer !important;
}

.hidden {
    display: none !important;
}

.platty-password-request-form,
.platty-password-reset-form {
    max-width: 400px;
    margin: 0 auto;
}

.platty-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.platty-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
}

.platty-form-group input[type="email"],
.platty-form-group input[type="password"],
.platty-form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.platty-form-group input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.platty-btn {
    display: block !important;
    width: 100% !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background-color: #000 !important;
    color: #fff !important;
}

.platty-btn:hover {
    background-color: #333 !important;
}

.platty-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.platty-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
}

.platty-message-container {
    margin-top: 15px;
}

.platty-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.platty-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.platty-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.platty-password-strength {
    margin-top: 8px;
    font-size: 13px;
}

.platty-password-strength.weak {
    color: #dc3545;
}

.platty-password-strength.medium {
    color: #ffc107;
}

.platty-password-strength.strong {
    color: #28a745;
}

.platty-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: platty-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes platty-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Password Toggle Styles (for shortcodes) */
.platty-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.platty-password-wrapper input[type="password"],
.platty-password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 45px;
}

.platty-password-toggle {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    transform: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
    width: 24px;
    line-height: 1;
}

.platty-password-toggle:hover {
    color: #333;
}

.platty-password-toggle:focus {
    outline: none;
    color: #2271b1;
}

.platty-password-toggle svg,
.platty-password-toggle i {
    width: 20px;
    height: 20px;
    display: block;
}

.platty-password-toggle .hidden {
    display: none;
}

/* Input wrapper for password toggle positioning */
.platty-input-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

/* Elementor Form Password Toggle */
.platty-password-toggle-elementor {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    transition: color 0.2s ease !important;
    z-index: 10 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: unset !important;
    min-height: unset !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.platty-password-toggle-elementor:hover {
    background: transparent !important;
    color: #333 !important;
}

.platty-password-toggle-elementor:focus {
    outline: none !important;
    background: transparent !important;
    color: #2271b1 !important;
}

/* Lucide icons styling */
.platty-password-toggle-elementor svg,
.platty-password-toggle-elementor i {
    width: 20px !important;
    height: 20px !important;
    color: inherit !important;
    stroke: currentColor !important;
    display: block !important;
}

.platty-password-toggle-elementor .hidden {
    display: none !important;
}
